public class PacketSerializer.InputStreamsResource extends Resource
Constructor and Description |
---|
InputStreamsResource() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Cleans the resource of its contents so it can be returned to the pool.
|
void |
markCorrupted() |
T |
readPacket() |
void |
setBuffer(byte[] serializedPacket) |
acquire, isAcquired, isFromPool, release, setAcquired, setFromPool
public T readPacket() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public void markCorrupted()
public void setBuffer(byte[] serializedPacket)
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()
Copyright © GigaSpaces.