public interface

MemoryTrimmableRegistry

com.facebook.common.memory.MemoryTrimmableRegistry

Class Overview

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.

Summary

Public Methods
abstract void registerMemoryTrimmable(MemoryTrimmable trimmable)
Register an object.
abstract void unregisterMemoryTrimmable(MemoryTrimmable trimmable)
Unregister an object.

Public Methods

public abstract void registerMemoryTrimmable (MemoryTrimmable trimmable)

Register an object.

public abstract void unregisterMemoryTrimmable (MemoryTrimmable trimmable)

Unregister an object.