public class DefaultMountContentPool extends RecyclePool implements MountContentPool
MountContentPool used for mount content unless your MountSpec
implements @OnCreateMountContentPool.| Constructor and Description |
|---|
DefaultMountContentPool(java.lang.String name,
int maxSize,
boolean sync) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
acquire() |
java.lang.Object |
acquire(Context c,
ContentAllocator component)
Acquire a pooled content item from the pool
|
void |
maybePreallocateContent(Context c,
ContentAllocator component)
Pre-allocates one item for the given Component if the preallocation count is less than the pool
size, otherwise does nothing.
|
clear, getCurrentSize, getMaxSize, getName, isFull, releaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentSize, getMaxSize, getNamereleasepublic DefaultMountContentPool(java.lang.String name,
int maxSize,
boolean sync)
public java.lang.Object acquire(Context c,
ContentAllocator component)
MountItemsPool.ItemPoolacquire in interface MountItemsPool.ItemPoolc - the Android contextpublic final java.lang.Object acquire()
acquire in class RecyclePoolpublic void maybePreallocateContent(Context c,
ContentAllocator component)
maybePreallocateContent in interface MountItemsPool.ItemPoolc - the android context