public class DisabledMountContentPool extends java.lang.Object implements MountContentPool
| Constructor and Description |
|---|
DisabledMountContentPool() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
acquire(Context c,
ContentAllocator component)
Acquire a pooled content item from the pool
|
int |
getCurrentSize() |
int |
getMaxSize() |
java.lang.String |
getName() |
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
|
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.ItemPoolitem - the item to release to the poolpublic void maybePreallocateContent(Context c,
ContentAllocator component)
MountItemsPool.ItemPoolmaybePreallocateContent in interface MountItemsPool.ItemPoolc - the android contextpublic java.lang.String getName()
getName in interface PoolWithDebugInfopublic int getMaxSize()
getMaxSize in interface PoolWithDebugInfopublic int getCurrentSize()
getCurrentSize in interface PoolWithDebugInfo