Package io.etcd.jetcd
Class KeyValue
- java.lang.Object
-
- io.etcd.jetcd.KeyValue
-
public class KeyValue extends java.lang.ObjectEtcd key value pair.
-
-
Constructor Summary
Constructors Constructor Description KeyValue(io.etcd.jetcd.api.KeyValue kv, ByteSequence namespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCreateRevision()Returns the create revision.ByteSequencegetKey()Returns the keylonggetLease()Returns the lease.longgetModRevision()Returns the mod revision.ByteSequencegetValue()Returns the valuelonggetVersion()Returns the version.
-
-
-
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.
-
-