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)
MountContentPool
NB: This can be called from multiple threads, possibly at the same time!
acquire
in interface MountContentPool
public void release(Object item)
MountContentPool
NB: This can be called from multiple threads, possibly at the same time!
release
in interface MountContentPool
public void maybePreallocateContent(Context c, ComponentLifecycle lifecycle)
MountContentPool
NB: This can be called from multiple threads, possibly at the same time!
maybePreallocateContent
in interface MountContentPool
public String getName()
getName
in interface PoolWithDebugInfo
public int getMaxSize()
getMaxSize
in interface PoolWithDebugInfo
public int getCurrentSize()
getCurrentSize
in interface PoolWithDebugInfo