Class KeyValueEntry

  • All Implemented Interfaces:

    
    public final class KeyValueEntry<T extends Object>
    
                        

    Represents an entry in the Key-Value store with typed payload

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getBucket() The name of the bucket containing this entry
      final String getKey() The key for this entry
      final T getValue() The typed value, null only for a DELETE or PURGE.
      final KeyValueOperation getOperation() The operation type (PUT, DELETE, PURGE)
      final Long getRevision() The revision number of this entry
      final Instant getCreated() The timestamp when this entry was created
      final Long getDelta() The number of entries pending after this one (0 means this is the latest)
      final Boolean isLatest() Check if this entry is the latest for the key
      final Boolean isDelete() Check if this is a DELETE operation
      final Boolean isPurge() Check if this is a PURGE operation
      final Boolean isPut() Check if this is a PUT operation
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getBucket

         final String getBucket()

        The name of the bucket containing this entry

      • getValue

         final T getValue()

        The typed value, null only for a DELETE or PURGE. A value that could not be decoded never reaches here: the watch's DecodeErrorStrategy decides its fate.

      • getOperation

         final KeyValueOperation getOperation()

        The operation type (PUT, DELETE, PURGE)

      • getDelta

         final Long getDelta()

        The number of entries pending after this one (0 means this is the latest)

      • isLatest

         final Boolean isLatest()

        Check if this entry is the latest for the key

      • isPut

         final Boolean isPut()

        Check if this is a PUT operation