public abstract class PooledSerializer<T extends ReferenceCounted<T>> extends Object implements TypeSerializer<T>
The PooledSerializer is provided as a base class for ReferenceCounted object serializers. When objects
are deserialized by pooled serializers, available objects will be acquired via acquire(Class)
rather than being constructed new.
| Constructor and Description |
|---|
PooledSerializer() |
| Modifier and Type | Method and Description |
|---|---|
T |
read(Class<T> type,
BufferInput buffer,
Serializer serializer)
Reads the object from the given buffer.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic T read(Class<T> type, BufferInput buffer, Serializer serializer)
TypeSerializerread in interface TypeSerializer<T extends ReferenceCounted<T>>type - The type to read.buffer - The buffer from which to read the object.serializer - The Catalyst serializer.Copyright © 2013–2015. All rights reserved.