public class ByteBufferRedoLogFileStorage.ByteArrayResource extends Resource
Constructor and Description |
---|
ByteArrayResource(int length) |
Modifier and Type | Method and Description |
---|---|
byte[] |
array()
Must be called first when the resource is acquired only after ensureCapacity was called
|
void |
clear()
Cleans the resource of its contents so it can be returned to the pool.
|
void |
ensureCapacity(int length) |
acquire, isAcquired, isFromPool, release, setAcquired, setFromPool
public void ensureCapacity(int length)
public void clear()
IResource
You may use the
IResource.isFromPool()
indication to decide of a special action before returning a resource to
the pool, or discard any actions on resources not returning to the pool.
clear
in interface IResource
clear
in class Resource
IResource.release()
public byte[] array()
Copyright © GigaSpaces.