Class GrpcSubscriberServiceStub (1.11.2)

public class GrpcSubscriberServiceStub extends SubscriberServiceStub

gRPC stub implementation for the SubscriberService service API.

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

Inheritance

java.lang.Object > SubscriberServiceStub > GrpcSubscriberServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcSubscriberServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcSubscriberServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcSubscriberServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcSubscriberServiceStub
Exceptions
TypeDescription
IOException

create(SubscriberServiceStubSettings settings)

public static final GrpcSubscriberServiceStub create(SubscriberServiceStubSettings settings)
Parameter
NameDescription
settingsSubscriberServiceStubSettings
Returns
TypeDescription
GrpcSubscriberServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcSubscriberServiceStub(SubscriberServiceStubSettings settings, ClientContext clientContext)

protected GrpcSubscriberServiceStub(SubscriberServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcSubscriberServiceStub, 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
NameDescription
settingsSubscriberServiceStubSettings
clientContextClientContext

GrpcSubscriberServiceStub(SubscriberServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcSubscriberServiceStub(SubscriberServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcSubscriberServiceStub, 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
NameDescription
settingsSubscriberServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

subscribeCallable()

public BidiStreamingCallable<SubscribeRequest,SubscribeResponse> subscribeCallable()
Returns
TypeDescription
BidiStreamingCallable<SubscribeRequest,SubscribeResponse>
Overrides