| Constructor and Description |
|---|
LeaseImplBase() |
| Modifier and Type | Method and Description |
|---|---|
io.grpc.ServerServiceDefinition |
bindService() |
void |
leaseGrant(LeaseGrantRequest request,
io.grpc.stub.StreamObserver<LeaseGrantResponse> responseObserver)
LeaseGrant creates a lease which expires if the server does not receive a keepAlive
within a given time to live period.
|
io.grpc.stub.StreamObserver<LeaseKeepAliveRequest> |
leaseKeepAlive(io.grpc.stub.StreamObserver<LeaseKeepAliveResponse> responseObserver)
LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
to the server and streaming keep alive responses from the server to the client.
|
void |
leaseRevoke(LeaseRevokeRequest request,
io.grpc.stub.StreamObserver<LeaseRevokeResponse> responseObserver)
LeaseRevoke revokes a lease.
|
void |
leaseTimeToLive(LeaseTimeToLiveRequest request,
io.grpc.stub.StreamObserver<LeaseTimeToLiveResponse> responseObserver)
LeaseTimeToLive retrieves lease information.
|
public void leaseGrant(LeaseGrantRequest request, io.grpc.stub.StreamObserver<LeaseGrantResponse> responseObserver)
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 void leaseRevoke(LeaseRevokeRequest request, io.grpc.stub.StreamObserver<LeaseRevokeResponse> responseObserver)
LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
public io.grpc.stub.StreamObserver<LeaseKeepAliveRequest> leaseKeepAlive(io.grpc.stub.StreamObserver<LeaseKeepAliveResponse> responseObserver)
LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client to the server and streaming keep alive responses from the server to the client.
public void leaseTimeToLive(LeaseTimeToLiveRequest request, io.grpc.stub.StreamObserver<LeaseTimeToLiveResponse> responseObserver)
LeaseTimeToLive retrieves lease information.
public final io.grpc.ServerServiceDefinition bindService()
bindService in interface io.grpc.BindableServiceCopyright © 2021. All rights reserved.