public class DisabledMountContentPool extends Object implements MountContentPool
| Constructor and Description |
|---|
DisabledMountContentPool() |
| Modifier and Type | Method and Description |
|---|---|
Object |
acquire(Context c,
ComponentLifecycle lifecycle)
Return a recycled mount content, or a newly acquired mount content if there isn't one to
recycle.
|
int |
getCurrentSize() |
int |
getMaxSize() |
String |
getName() |
void |
maybePreallocateContent(Context c,
ComponentLifecycle lifecycle)
Called when a LayoutState that uses this mount content type may be used in the near future.
|
void |
release(Object item)
Release the given mount content into the pool.
|
public Object acquire(Context c, ComponentLifecycle lifecycle)
MountContentPoolNB: This can be called from multiple threads, possibly at the same time!
acquire in interface MountContentPoolpublic void release(Object item)
MountContentPoolNB: This can be called from multiple threads, possibly at the same time!
release in interface MountContentPoolpublic void maybePreallocateContent(Context c,
ComponentLifecycle lifecycle)
MountContentPoolNB: This can be called from multiple threads, possibly at the same time!
maybePreallocateContent in interface MountContentPoolpublic String getName()
getName in interface PoolWithDebugInfopublic int getMaxSize()
getMaxSize in interface PoolWithDebugInfopublic int getCurrentSize()
getCurrentSize in interface PoolWithDebugInfo