public interface

DiskTrimmableRegistry

com.facebook.common.disk.DiskTrimmableRegistry

Class Overview

A class which keeps a list of other classes to be notified of system disk events.

If a class uses a lot of disk space and needs these notices from the system, it should implement the DiskTrimmable interface.

Implementations of this class should notify all the trimmables that have registered with it when they need to trim their disk usage.

Summary

Public Methods
abstract void registerDiskTrimmable(DiskTrimmable trimmable)
Register an object.
abstract void unregisterDiskTrimmable(DiskTrimmable trimmable)
Unregister an object.

Public Methods

public abstract void registerDiskTrimmable (DiskTrimmable trimmable)

Register an object.

public abstract void unregisterDiskTrimmable (DiskTrimmable trimmable)

Unregister an object.