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.ItemPool
acquire
in interface MountItemsPool.ItemPool
c
- the Android contextpublic void release(java.lang.Object item)
MountItemsPool.ItemPool
release
in interface MountItemsPool.ItemPool
item
- the item to release to the poolpublic void maybePreallocateContent(Context c, ContentAllocator component)
MountItemsPool.ItemPool
maybePreallocateContent
in interface MountItemsPool.ItemPool
c
- the android contextpublic java.lang.String getName()
getName
in interface PoolWithDebugInfo
public int getMaxSize()
getMaxSize
in interface PoolWithDebugInfo
public int getCurrentSize()
getCurrentSize
in interface PoolWithDebugInfo