public interface MountContentPool<T> extends PoolWithDebugInfo
Note! This class MUST be implemented in a thread safe manner! See info in the javadocs below.
| Modifier and Type | Method and Description | 
|---|---|
T | 
acquire(Context c,
       ComponentLifecycle lifecycle)
Return a recycled mount content, or a newly acquired mount content if there isn't one to
 recycle. 
 | 
void | 
maybePreallocateContent(Context c,
                       ComponentLifecycle lifecycle)
Called when a LayoutState that uses this mount content type may be used in the near future. 
 | 
void | 
release(T item)
Release the given mount content into the pool. 
 | 
getCurrentSize, getMaxSize, getNameT acquire(Context c, ComponentLifecycle lifecycle)
NB: This can be called from multiple threads, possibly at the same time!
void release(T item)
NB: This can be called from multiple threads, possibly at the same time!
void maybePreallocateContent(Context c,
                             ComponentLifecycle lifecycle)
NB: This can be called from multiple threads, possibly at the same time!