Class GrpcPublisherServiceStub
java.lang.Object
com.google.cloud.pubsublite.v1.stub.PublisherServiceStub
com.google.cloud.pubsublite.v1.stub.GrpcPublisherServiceStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcPublisherServiceStub
extends PublisherServiceStub
gRPC stub implementation for the PublisherService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcPublisherServiceStub(PublisherServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of GrpcPublisherServiceStub, using the given settings.protectedGrpcPublisherServiceStub(PublisherServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcPublisherServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcPublisherServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcPublisherServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) static final GrpcPublisherServiceStubcreate(PublisherServiceStubSettings settings) com.google.longrunning.stub.GrpcOperationsStubbooleanbooleancom.google.api.gax.rpc.BidiStreamingCallable<PublishRequest,PublishResponse> voidshutdown()void
-
Constructor Details
-
GrpcPublisherServiceStub
protected GrpcPublisherServiceStub(PublisherServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException Constructs an instance of GrpcPublisherServiceStub, 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.- Throws:
IOException
-
GrpcPublisherServiceStub
protected GrpcPublisherServiceStub(PublisherServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcPublisherServiceStub, 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcPublisherServiceStub create(PublisherServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcPublisherServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcPublisherServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub() -
publishCallable
public com.google.api.gax.rpc.BidiStreamingCallable<PublishRequest,PublishResponse> publishCallable()- Overrides:
publishCallablein classPublisherServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classPublisherServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-