Class GrpcCommentServiceStub (0.21.0)

public class GrpcCommentServiceStub extends CommentServiceStub

gRPC stub implementation for the CommentService service API.

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

Inheritance

java.lang.Object > CommentServiceStub > GrpcCommentServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(CommentServiceStubSettings settings)

public static final GrpcCommentServiceStub create(CommentServiceStubSettings settings)
Parameter
NameDescription
settingsCommentServiceStubSettings
Returns
TypeDescription
GrpcCommentServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcCommentServiceStub(CommentServiceStubSettings settings, ClientContext clientContext)

protected GrpcCommentServiceStub(CommentServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcCommentServiceStub, 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
settingsCommentServiceStubSettings
clientContextClientContext

GrpcCommentServiceStub(CommentServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcCommentServiceStub(CommentServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcCommentServiceStub, 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
settingsCommentServiceStubSettings
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

createCommentCallable()

public UnaryCallable<CreateCommentRequest,Comment> createCommentCallable()
Returns
TypeDescription
UnaryCallable<CreateCommentRequest,Comment>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCommentsCallable()

public UnaryCallable<ListCommentsRequest,ListCommentsResponse> listCommentsCallable()
Returns
TypeDescription
UnaryCallable<ListCommentsRequest,ListCommentsResponse>
Overrides

listCommentsPagedCallable()

public UnaryCallable<ListCommentsRequest,CommentServiceClient.ListCommentsPagedResponse> listCommentsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCommentsRequest,ListCommentsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()