public abstract class CmpTarget<T> extends Object
Txn.| Modifier | Constructor and Description |
|---|---|
protected |
CmpTarget(com.coreos.jetcd.api.Compare.CompareTarget target,
T targetValue) |
| Modifier and Type | Method and Description |
|---|---|
static com.coreos.jetcd.op.CmpTarget.CreateRevisionCmpTarget |
createRevision(long revision)
Cmp on the create revision.
|
com.coreos.jetcd.api.Compare.CompareTarget |
getTarget()
Get the compare target used for this compare.
|
T |
getTargetValue()
Get the compare target value of this compare.
|
static com.coreos.jetcd.op.CmpTarget.ModRevisionCmpTarget |
modRevision(long revision)
Cmp on the modification revision.
|
static com.coreos.jetcd.op.CmpTarget.ValueCmpTarget |
value(ByteSequence value)
Cmp on the value.
|
static com.coreos.jetcd.op.CmpTarget.VersionCmpTarget |
version(long version)
Cmp on a given version.
|
protected CmpTarget(com.coreos.jetcd.api.Compare.CompareTarget target,
T targetValue)
public static com.coreos.jetcd.op.CmpTarget.VersionCmpTarget version(long version)
version - version to comparepublic static com.coreos.jetcd.op.CmpTarget.CreateRevisionCmpTarget createRevision(long revision)
revision - the create revisionpublic static com.coreos.jetcd.op.CmpTarget.ModRevisionCmpTarget modRevision(long revision)
revision - the modification revisionpublic static com.coreos.jetcd.op.CmpTarget.ValueCmpTarget value(ByteSequence value)
value - the value to comparepublic com.coreos.jetcd.api.Compare.CompareTarget getTarget()
public T getTargetValue()
Copyright © 2018. All rights reserved.