|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.transactions.xa.SoftLockValueCombinedSerializer<T>
public class SoftLockValueCombinedSerializer<T>
The Serializer
that is responsible for serializing a SoftLock
containing a value.
Constructor Summary | |
---|---|
SoftLockValueCombinedSerializer(java.util.concurrent.atomic.AtomicReference<Serializer<SoftLock<T>>> softLockSerializerRef,
Serializer<T> valueSerializer)
|
Method Summary | |
---|---|
boolean |
equals(SoftLock<T> object,
java.nio.ByteBuffer binary)
Checks if the given instance and serial form are representations of the same instance. |
SoftLock<T> |
read(java.nio.ByteBuffer binary)
Reconstructs an instance from the given serial form. |
java.nio.ByteBuffer |
serialize(SoftLock<T> softLock)
Transforms the given instance into its serial form. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SoftLockValueCombinedSerializer(java.util.concurrent.atomic.AtomicReference<Serializer<SoftLock<T>>> softLockSerializerRef, Serializer<T> valueSerializer)
Method Detail |
---|
public java.nio.ByteBuffer serialize(SoftLock<T> softLock) throws SerializerException
Serializer
serialize
in interface Serializer<SoftLock<T>>
softLock
- the instance to serialize
SerializerException
- if serialization failspublic SoftLock<T> read(java.nio.ByteBuffer binary) throws java.lang.ClassNotFoundException, SerializerException
Serializer
read
in interface Serializer<SoftLock<T>>
binary
- the binary representation of the serial form
java.lang.ClassNotFoundException
- if the type to de-serialize to cannot be found
SerializerException
- if reading the byte buffer failspublic boolean equals(SoftLock<T> object, java.nio.ByteBuffer binary) throws java.lang.ClassNotFoundException, SerializerException
Serializer
equals
in interface Serializer<SoftLock<T>>
object
- the instance to checkbinary
- the serial form to check
true
if both parameters represent the same instance, false
otherwise
java.lang.ClassNotFoundException
- if the type to de-serialize to cannot be found
SerializerException
- if reading the byte buffer fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |