Package io.etcd.jetcd.api
Class VertxLeaseGrpc.LeaseVertxImplBase
- java.lang.Object
-
- io.etcd.jetcd.api.VertxLeaseGrpc.LeaseVertxImplBase
-
- All Implemented Interfaces:
io.grpc.BindableService
- Enclosing class:
- VertxLeaseGrpc
public abstract static class VertxLeaseGrpc.LeaseVertxImplBase extends java.lang.Object implements io.grpc.BindableService
-
-
Constructor Summary
Constructors Constructor Description LeaseVertxImplBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.ServerServiceDefinitionbindService()io.vertx.core.Future<LeaseGrantResponse>leaseGrant(LeaseGrantRequest request)Range gets the keys in the range from the key-value store.voidleaseKeepAlive(io.vertx.core.streams.ReadStream<LeaseKeepAliveRequest> request, io.vertx.core.streams.WriteStream<LeaseKeepAliveResponse> response)DeleteRange deletes the given range from the key-value store.io.vertx.core.Future<LeaseRevokeResponse>leaseRevoke(LeaseRevokeRequest request)Put puts the given key into the key-value store.io.vertx.core.Future<LeaseTimeToLiveResponse>leaseTimeToLive(LeaseTimeToLiveRequest request)Txn processes multiple requests in a single transaction.VertxLeaseGrpc.LeaseVertxImplBasewithCompression(java.lang.String compression)Set whether the server will try to use a compressed response.
-
-
-
Method Detail
-
withCompression
public VertxLeaseGrpc.LeaseVertxImplBase withCompression(java.lang.String compression)
Set whether the server will try to use a compressed response.- Parameters:
compression- the compression, e.ggzip
-
leaseGrant
public io.vertx.core.Future<LeaseGrantResponse> leaseGrant(LeaseGrantRequest request)
Range gets the keys in the range from the key-value store.
-
leaseRevoke
public io.vertx.core.Future<LeaseRevokeResponse> leaseRevoke(LeaseRevokeRequest 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.
-
leaseTimeToLive
public io.vertx.core.Future<LeaseTimeToLiveResponse> leaseTimeToLive(LeaseTimeToLiveRequest 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.
-
leaseKeepAlive
public void leaseKeepAlive(io.vertx.core.streams.ReadStream<LeaseKeepAliveRequest> request, io.vertx.core.streams.WriteStream<LeaseKeepAliveResponse> response)
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.
-
bindService
public final io.grpc.ServerServiceDefinition bindService()
- Specified by:
bindServicein interfaceio.grpc.BindableService
-
-