public class HostMountContentPool extends RecyclePool implements MountContentPool
| Constructor and Description |
|---|
HostMountContentPool(java.lang.String name,
int maxSize,
boolean isEnabled) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
acquire(Context c,
ContentAllocator component)
Acquire a pooled content item from the pool
|
void |
maybePreallocateContent(Context c,
ContentAllocator component)
Called early in the lifecycle to allow the pool implementation to preallocate items in the
pool (as released items)
|
void |
release(java.lang.Object item)
Called when an item is released and can return to the pool
|
acquire, clear, getCurrentSize, getMaxSize, getName, isFullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentSize, getMaxSize, getNamepublic HostMountContentPool(java.lang.String name,
int maxSize,
boolean isEnabled)
public java.lang.Object acquire(Context c,
ContentAllocator component)
MountItemsPool.ItemPoolacquire in interface MountItemsPool.ItemPoolc - the Android contextpublic void release(java.lang.Object item)
MountItemsPool.ItemPoolrelease in interface MountItemsPool.ItemPoolrelease in class RecyclePoolitem - the item to release to the poolpublic void maybePreallocateContent(Context c,
ContentAllocator component)
MountItemsPool.ItemPoolmaybePreallocateContent in interface MountItemsPool.ItemPoolc - the android context