com.facebook.common.memory.MemoryTrimmableRegistry |
Known Indirect Subclasses |
A class which keeps a list of other classes to be notified of system memory events.
If a class uses a lot of memory and needs these notices from the system, it should implement
the MemoryTrimmable
interface.
Implementations of this class should notify all the trimmables that have registered with it when they need to trim their memory usage.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
registerMemoryTrimmable(MemoryTrimmable trimmable)
Register an object.
| ||||||||||
abstract void |
unregisterMemoryTrimmable(MemoryTrimmable trimmable)
Unregister an object.
|