Class LeaseGrpc.LeaseImplBase

  • All Implemented Interfaces:
    io.grpc.BindableService
    Enclosing class:
    LeaseGrpc

    public abstract static class LeaseGrpc.LeaseImplBase
    extends java.lang.Object
    implements io.grpc.BindableService
    • Constructor Detail

      • LeaseImplBase

        public LeaseImplBase()
    • Method Detail

      • leaseGrant

        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.
         
      • leaseRevoke

        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.
         
      • leaseKeepAlive

        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.
         
      • bindService

        public final io.grpc.ServerServiceDefinition bindService()
        Specified by:
        bindService in interface io.grpc.BindableService