Class VeniceObjectWithTimestamp


  • public class VeniceObjectWithTimestamp
    extends java.lang.Object
    This class defines a wrapper object to wrap up the actual object and the corresponding update timestamp. For the users who need to specify the logical update timestamp, you will need to wrap up your update and the corresponding update timestamp and pass it to VeniceSystemProducer. Specifically, for the users who are using VeniceSystemProducer.send(String, OutgoingMessageEnvelope), the wrapper will replace OutgoingMessageEnvelope.message.
    • Constructor Summary

      Constructors 
      Constructor Description
      VeniceObjectWithTimestamp​(java.lang.Object object, long timestamp)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getObject()  
      long getTimestamp()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VeniceObjectWithTimestamp

        public VeniceObjectWithTimestamp​(java.lang.Object object,
                                         long timestamp)
    • Method Detail

      • getObject

        public java.lang.Object getObject()
      • getTimestamp

        public long getTimestamp()