com.hazelcast.hibernate.local
Class Timestamp

java.lang.Object
  extended by 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


Constructor Summary
Timestamp()
           
Timestamp(Object key, long timestamp)
           
 
Method Summary
 Object getKey()
           
 long getTimestamp()
           
 void readData(ObjectDataInput in)
           
 String toString()
           
 void writeData(ObjectDataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Timestamp

public Timestamp()

Timestamp

public Timestamp(Object key,
                 long timestamp)
Method Detail

getKey

public Object getKey()

getTimestamp

public long getTimestamp()

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Specified by:
writeData in interface DataSerializable
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Specified by:
readData in interface DataSerializable
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.