public static final class KVGrpc.KVFutureStub extends io.grpc.stub.AbstractStub<KVGrpc.KVFutureStub>
| Modifier and Type | Method and Description |
|---|---|
protected KVGrpc.KVFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<CompactionResponse> |
compact(CompactionRequest request)
Compact compacts the event history in the etcd key-value store.
|
com.google.common.util.concurrent.ListenableFuture<DeleteRangeResponse> |
deleteRange(DeleteRangeRequest request)
DeleteRange deletes the given range from the key-value store.
|
com.google.common.util.concurrent.ListenableFuture<PutResponse> |
put(PutRequest request)
Put puts the given key into the key-value store.
|
com.google.common.util.concurrent.ListenableFuture<RangeResponse> |
range(RangeRequest request)
Range gets the keys in the range from the key-value store.
|
com.google.common.util.concurrent.ListenableFuture<TxnResponse> |
txn(TxnRequest request)
Txn processes multiple requests in a single transaction.
|
protected KVGrpc.KVFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<KVGrpc.KVFutureStub>public com.google.common.util.concurrent.ListenableFuture<RangeResponse> range(RangeRequest request)
Range gets the keys in the range from the key-value store.
public com.google.common.util.concurrent.ListenableFuture<PutResponse> put(PutRequest request)
Put puts the given key into the key-value store. A put request increments the revision of the key-value store and generates one event in the event history.
public com.google.common.util.concurrent.ListenableFuture<DeleteRangeResponse> deleteRange(DeleteRangeRequest request)
DeleteRange deletes the given range from the key-value store. A delete request increments the revision of the key-value store and generates a delete event in the event history for every deleted key.
public com.google.common.util.concurrent.ListenableFuture<TxnResponse> txn(TxnRequest request)
Txn processes multiple requests in a single transaction. A txn request increments the revision of the key-value store and generates events with the same revision for every completed request. It is not allowed to modify the same key several times within one txn.
public com.google.common.util.concurrent.ListenableFuture<CompactionResponse> compact(CompactionRequest request)
Compact compacts the event history in the etcd key-value store. The key-value store should be periodically compacted or the event history will continue to grow indefinitely.
Copyright © 2019. All rights reserved.