public static final class LeaseGrpc.LeaseFutureStub extends io.grpc.stub.AbstractFutureStub<LeaseGrpc.LeaseFutureStub>
| Modifier and Type | Method and Description |
|---|---|
protected LeaseGrpc.LeaseFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<LeaseGrantResponse> |
leaseGrant(LeaseGrantRequest request)
LeaseGrant creates a lease which expires if the server does not receive a keepAlive
within a given time to live period.
|
com.google.common.util.concurrent.ListenableFuture<LeaseRevokeResponse> |
leaseRevoke(LeaseRevokeRequest request)
LeaseRevoke revokes a lease.
|
com.google.common.util.concurrent.ListenableFuture<LeaseTimeToLiveResponse> |
leaseTimeToLive(LeaseTimeToLiveRequest request)
LeaseTimeToLive retrieves lease information.
|
protected LeaseGrpc.LeaseFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<LeaseGrpc.LeaseFutureStub>public com.google.common.util.concurrent.ListenableFuture<LeaseGrantResponse> leaseGrant(LeaseGrantRequest request)
LeaseGrant creates a lease which expires if the server does not receive a keepAlive within a given time to live period. All keys attached to the lease will be expired and deleted if the lease expires. Each expired key generates a delete event in the event history.
public com.google.common.util.concurrent.ListenableFuture<LeaseRevokeResponse> leaseRevoke(LeaseRevokeRequest request)
LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
public com.google.common.util.concurrent.ListenableFuture<LeaseTimeToLiveResponse> leaseTimeToLive(LeaseTimeToLiveRequest request)
LeaseTimeToLive retrieves lease information.
Copyright © 2020. All rights reserved.