Class GrpcStreamingServiceStub (0.8.0)

public class GrpcStreamingServiceStub extends StreamingServiceStub

gRPC stub implementation for the StreamingService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > StreamingServiceStub > GrpcStreamingServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcStreamingServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcStreamingServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcStreamingServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcStreamingServiceStub
Exceptions
Type Description
IOException

create(StreamingServiceStubSettings settings)

public static final GrpcStreamingServiceStub create(StreamingServiceStubSettings settings)
Parameter
Name Description
settings StreamingServiceStubSettings
Returns
Type Description
GrpcStreamingServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcStreamingServiceStub(StreamingServiceStubSettings settings, ClientContext clientContext)

protected GrpcStreamingServiceStub(StreamingServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcStreamingServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings StreamingServiceStubSettings
clientContext ClientContext

GrpcStreamingServiceStub(StreamingServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcStreamingServiceStub(StreamingServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcStreamingServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings StreamingServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

acquireLeaseCallable()

public UnaryCallable<AcquireLeaseRequest,Lease> acquireLeaseCallable()
Returns
Type Description
UnaryCallable<AcquireLeaseRequest,Lease>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

receiveEventsCallable()

public BidiStreamingCallable<ReceiveEventsRequest,ReceiveEventsResponse> receiveEventsCallable()
Returns
Type Description
BidiStreamingCallable<ReceiveEventsRequest,ReceiveEventsResponse>
Overrides

receivePacketsCallable()

public BidiStreamingCallable<ReceivePacketsRequest,ReceivePacketsResponse> receivePacketsCallable()
Returns
Type Description
BidiStreamingCallable<ReceivePacketsRequest,ReceivePacketsResponse>
Overrides

releaseLeaseCallable()

public UnaryCallable<ReleaseLeaseRequest,ReleaseLeaseResponse> releaseLeaseCallable()
Returns
Type Description
UnaryCallable<ReleaseLeaseRequest,ReleaseLeaseResponse>
Overrides

renewLeaseCallable()

public UnaryCallable<RenewLeaseRequest,Lease> renewLeaseCallable()
Returns
Type Description
UnaryCallable<RenewLeaseRequest,Lease>
Overrides

sendPacketsCallable()

public BidiStreamingCallable<SendPacketsRequest,SendPacketsResponse> sendPacketsCallable()
Returns
Type Description
BidiStreamingCallable<SendPacketsRequest,SendPacketsResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()