Class TimestampExternalizer
- java.lang.Object
-
- org.wildfly.clustering.marshalling.spi.LongExternalizer<D>
-
- org.wildfly.clustering.marshalling.spi.util.DateExternalizer<Timestamp>
-
- org.wildfly.clustering.marshalling.spi.sql.TimestampExternalizer
-
- All Implemented Interfaces:
Externalizer<Timestamp>
public class TimestampExternalizer extends DateExternalizer<Timestamp>
Externalizer for aTimestamp.- Author:
- Radoslav Husar
-
-
Constructor Summary
Constructors Constructor Description TimestampExternalizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimestampreadObject(ObjectInput input)OptionalIntsize(Timestamp object)voidwriteObject(ObjectOutput output, Timestamp timestamp)-
Methods inherited from class org.wildfly.clustering.marshalling.spi.LongExternalizer
getTargetClass
-
-
-
-
Method Detail
-
writeObject
public void writeObject(ObjectOutput output, Timestamp timestamp) throws IOException
- Specified by:
writeObjectin interfaceExternalizer<Timestamp>- Overrides:
writeObjectin classLongExternalizer<Timestamp>- Throws:
IOException
-
readObject
public Timestamp readObject(ObjectInput input) throws IOException, ClassNotFoundException
- Specified by:
readObjectin interfaceExternalizer<Timestamp>- Overrides:
readObjectin classLongExternalizer<Timestamp>- Throws:
IOExceptionClassNotFoundException
-
size
public OptionalInt size(Timestamp object)
- Specified by:
sizein interfaceExternalizer<Timestamp>- Overrides:
sizein classLongExternalizer<Timestamp>
-
-