Package io.etcd.jetcd.options
Class GetOption
- java.lang.Object
-
- io.etcd.jetcd.options.GetOption
-
public final class GetOption extends java.lang.ObjectThe option for get operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetOption.Builderstatic classGetOption.SortOrderstatic classGetOption.SortTarget
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<ByteSequence>getEndKey()longgetLimit()Get the maximum number of keys to return for a get request.longgetMaxCreateRevision()longgetMaxModRevision()longgetMinCreateRevision()longgetMinModRevision()longgetRevision()GetOption.SortTargetgetSortField()GetOption.SortOrdergetSortOrder()booleanisCountOnly()booleanisKeysOnly()booleanisPrefix()booleanisSerializable()static GetOption.BuildernewBuilder()Create a builder to construct option for get operation.
-
-
-
Field Detail
-
DEFAULT
public static final GetOption DEFAULT
-
-
Method Detail
-
newBuilder
public static GetOption.Builder newBuilder()
Create a builder to construct option for get operation.- Returns:
- builder
-
getLimit
public long getLimit()
Get the maximum number of keys to return for a get request.- Returns:
- the maximum number of keys to return.
-
getEndKey
public java.util.Optional<ByteSequence> getEndKey()
-
getRevision
public long getRevision()
-
getSortOrder
public GetOption.SortOrder getSortOrder()
-
getSortField
public GetOption.SortTarget getSortField()
-
isSerializable
public boolean isSerializable()
-
isKeysOnly
public boolean isKeysOnly()
-
isCountOnly
public boolean isCountOnly()
-
getMinCreateRevision
public long getMinCreateRevision()
-
getMaxCreateRevision
public long getMaxCreateRevision()
-
getMinModRevision
public long getMinModRevision()
-
getMaxModRevision
public long getMaxModRevision()
-
isPrefix
public boolean isPrefix()
-
-