T
- the type of content that the pool holdspublic static interface MountItemsPool.ItemPool<T>
Modifier and Type | Method and Description |
---|---|
T |
acquire(Context c,
PoolableContentProvider poolableMountContent)
Acquire a pooled content item from the pool
|
void |
maybePreallocateContent(Context c,
PoolableContentProvider poolableMountContent)
Called early in the lifecycle to allow the pool implementation to preallocate items in the
pool (as released items)
|
void |
release(T item)
Called when an item is released and can return to the pool
|
T acquire(Context c, PoolableContentProvider poolableMountContent)
c
- the Android contextrenderUnit
- the RenderUnit for the itemvoid release(T item)
item
- the item to release to the poolvoid maybePreallocateContent(Context c, PoolableContentProvider poolableMountContent)
c
- the android contextrenderUnit
- the RenderUnit for the item