Class Timestamp

java.lang.Object
com.hazelcast.hibernate.local.Timestamp
All Implemented Interfaces:
com.hazelcast.nio.serialization.DataSerializable, com.hazelcast.nio.serialization.IdentifiedDataSerializable

public class Timestamp extends Object implements com.hazelcast.nio.serialization.IdentifiedDataSerializable
Hazelcast compatible implementation of a timestamp for internal eviction
  • Constructor Details

    • Timestamp

      public Timestamp()
    • Timestamp

      public Timestamp(Object key, long timestamp, UUID senderId)
  • Method Details

    • getKey

      public Object getKey()
    • getTimestamp

      public long getTimestamp()
    • getSenderId

      public UUID getSenderId()
    • writeData

      public void writeData(com.hazelcast.nio.ObjectDataOutput out) throws IOException
      Specified by:
      writeData in interface com.hazelcast.nio.serialization.DataSerializable
      Throws:
      IOException
    • readData

      public void readData(com.hazelcast.nio.ObjectDataInput in) throws IOException
      Specified by:
      readData in interface com.hazelcast.nio.serialization.DataSerializable
      Throws:
      IOException
    • getFactoryId

      public int getFactoryId()
      Specified by:
      getFactoryId in interface com.hazelcast.nio.serialization.IdentifiedDataSerializable
    • getClassId

      public int getClassId()
      Specified by:
      getClassId in interface com.hazelcast.nio.serialization.IdentifiedDataSerializable
    • toString

      public String toString()
      Overrides:
      toString in class Object