Summary
[Expand]
Inherited Methods |
From class
com.facebook.imagepipeline.memory.MemoryChunkPool
|
From class
com.facebook.imagepipeline.memory.BasePool
abstract
V
|
alloc(int bucketedSize)
Allocates a new 'value' with the given size
|
abstract
void
|
free(V value)
Frees the 'value'
|
V
|
get(int size)
Gets a new 'value' from the pool, if available.
|
abstract
int
|
getBucketedSize(int requestSize)
Gets the bucketed size (typically something the same or larger than the requested size)
|
abstract
int
|
getBucketedSizeForValue(V value)
Gets the bucketed size of the value
|
abstract
int
|
getSizeInBytes(int bucketedSize)
Gets the size in bytes for the given bucketed size
|
synchronized
Map<String, Integer>
|
getStats()
Export memory stats regarding buckets used, memory caps, reused values.
|
synchronized
V
|
getValue(Bucket<V> bucket)
|
void
|
initialize()
Finish pool initialization.
|
boolean
|
isReusable(V value)
Determines if the supplied value is 'reusable'.
|
void
|
onParamsChanged()
The pool parameters may have changed.
|
void
|
release(V value)
Releases the given value to the pool.
|
void
|
trim(MemoryTrimType memoryTrimType)
Trims the pool in response to low-memory states (invoked from MemoryManager) For now, we'll do
the simplest thing, and simply clear out the entire pool.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
com.facebook.common.memory.MemoryTrimmable
|
From interface
com.facebook.common.memory.Pool
abstract
V
|
get(int size)
Gets a 'value' of size 'S' (or larger) from the pool, if available.
|
abstract
void
|
release(V value)
Releases the given value to the pool.
|
|
From interface
com.facebook.common.references.ResourceReleaser
abstract
void
|
release(T value)
Release the given value.
|
|
Public Constructors
Protected Methods
protected
NativeMemoryChunk
alloc
(int bucketedSize)
Allocates a new 'value' with the given size
Parameters
bucketedSize |
the logical size to allocate |