Package io.etcd.jetcd

Class KeyValue


  • public class KeyValue
    extends java.lang.Object
    Etcd key value pair.
    • Constructor Detail

      • KeyValue

        public KeyValue​(io.etcd.jetcd.api.KeyValue kv,
                        ByteSequence namespace)
    • Method Detail

      • getKey

        public ByteSequence getKey()
        Returns the key
        Returns:
        the key.
      • getValue

        public ByteSequence getValue()
        Returns the value
        Returns:
        the value.
      • getCreateRevision

        public long getCreateRevision()
        Returns the create revision.
        Returns:
        the create revision.
      • getModRevision

        public long getModRevision()
        Returns the mod revision.
        Returns:
        the mod revision.
      • getVersion

        public long getVersion()
        Returns the version.
        Returns:
        the version.
      • getLease

        public long getLease()
        Returns the lease.
        Returns:
        the lease.