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, release
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentSize, getMaxSize, getName
release
public DefaultMountContentPool(java.lang.String name, int maxSize, boolean sync)
public java.lang.Object acquire(Context c, ContentAllocator component)
MountItemsPool.ItemPool
acquire
in interface MountItemsPool.ItemPool
c
- the Android contextpublic final java.lang.Object acquire()
acquire
in class RecyclePool
public void maybePreallocateContent(Context c, ContentAllocator component)
maybePreallocateContent
in interface MountItemsPool.ItemPool
c
- the android context