com.hazelcast.hibernate.local
Class Timestamp
java.lang.Object
com.hazelcast.hibernate.local.Timestamp
- All Implemented Interfaces:
- DataSerializable
public class Timestamp
- extends Object
- implements DataSerializable
Hazelcast compatible implementation of a timestamp for internal eviction
Timestamp
public Timestamp()
Timestamp
public Timestamp(Object key,
long timestamp)
getKey
public Object getKey()
getTimestamp
public long getTimestamp()
writeData
public void writeData(ObjectDataOutput out)
throws IOException
- Description copied from interface:
DataSerializable
- Writes object fields to output stream
- Specified by:
writeData
in interface DataSerializable
- Parameters:
out
- output
- Throws:
IOException
readData
public void readData(ObjectDataInput in)
throws IOException
- Description copied from interface:
DataSerializable
- Reads fields from the input stream
- Specified by:
readData
in interface DataSerializable
- Parameters:
in
- input
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.