Class StreamingServiceGrpc.StreamingServiceFutureStub (0.12.0)

public static final class StreamingServiceGrpc.StreamingServiceFutureStub extends AbstractFutureStub<StreamingServiceGrpc.StreamingServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service StreamingService.

Streaming service for receiving and sending packets.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > StreamingServiceGrpc.StreamingServiceFutureStub

Methods

acquireLease(AcquireLeaseRequest request)

public ListenableFuture<Lease> acquireLease(AcquireLeaseRequest request)

AcquireLease acquires a lease.

Parameter
Name Description
request AcquireLeaseRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Lease>

build(Channel channel, CallOptions callOptions)

protected StreamingServiceGrpc.StreamingServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
StreamingServiceGrpc.StreamingServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

releaseLease(ReleaseLeaseRequest request)

public ListenableFuture<ReleaseLeaseResponse> releaseLease(ReleaseLeaseRequest request)

RleaseLease releases a lease.

Parameter
Name Description
request ReleaseLeaseRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ReleaseLeaseResponse>

renewLease(RenewLeaseRequest request)

public ListenableFuture<Lease> renewLease(RenewLeaseRequest request)

RenewLease renews a lease.

Parameter
Name Description
request RenewLeaseRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Lease>