public class WritablePool
extends java.lang.Object
Constructor and Description |
---|
WritablePool() |
Modifier and Type | Method and Description |
---|---|
void |
clean()
Clean all writables in freeQueue, namely
remove all not-in-use writables.
|
<W extends Writable> |
freeWritable(W obj)
Free the writable by removing it from the
inUseMap.
|
public <W extends Writable> boolean freeWritable(W obj)
obj
- the writable to removepublic void clean()