Package io.etcd.jetcd.op
Class CmpTarget<T>
java.lang.Object
io.etcd.jetcd.op.CmpTarget<T>
- Direct Known Subclasses:
CmpTarget.CreateRevisionCmpTarget,CmpTarget.ModRevisionCmpTarget,CmpTarget.ValueCmpTarget,CmpTarget.VersionCmpTarget
Cmp target used in
Txn.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRevision(long revision) Cmp on the create revision.io.etcd.jetcd.api.Compare.CompareTargetGet the compare target used for this compare.Get the compare target value of this compare.modRevision(long revision) Cmp on the modification revision.static CmpTarget.ValueCmpTargetvalue(ByteSequence value) Cmp on the value.static CmpTarget.VersionCmpTargetversion(long version) Cmp on a given version.
-
Constructor Details
-
CmpTarget
-
-
Method Details
-
version
Cmp on a given version.- Parameters:
version- version to compare- Returns:
- the version compare target
-
createRevision
Cmp on the create revision.- Parameters:
revision- the create revision- Returns:
- the create revision compare target
-
modRevision
Cmp on the modification revision.- Parameters:
revision- the modification revision- Returns:
- the modification revision compare target
-
value
Cmp on the value.- Parameters:
value- the value to compare- Returns:
- the value compare target
-
getTarget
public io.etcd.jetcd.api.Compare.CompareTarget getTarget()Get the compare target used for this compare.- Returns:
- the compare target used for this compare
-
getTargetValue
Get the compare target value of this compare.- Returns:
- the compare target value of this compare.
-