Class GrpcCursorServiceStub
- java.lang.Object
-
- com.google.cloud.pubsublite.v1.stub.CursorServiceStub
-
- com.google.cloud.pubsublite.v1.stub.GrpcCursorServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcCursorServiceStub extends CursorServiceStub
gRPC stub implementation for the CursorService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcCursorServiceStub(CursorServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcCursorServiceStub, using the given settings.protectedGrpcCursorServiceStub(CursorServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcCursorServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcCursorServiceStub
protected GrpcCursorServiceStub(CursorServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcCursorServiceStub, 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
-
GrpcCursorServiceStub
protected GrpcCursorServiceStub(CursorServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcCursorServiceStub, 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 Detail
-
create
public static final GrpcCursorServiceStub create(CursorServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcCursorServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcCursorServiceStub 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()
-
streamingCommitCursorCallable
public com.google.api.gax.rpc.BidiStreamingCallable<StreamingCommitCursorRequest,StreamingCommitCursorResponse> streamingCommitCursorCallable()
- Overrides:
streamingCommitCursorCallablein classCursorServiceStub
-
commitCursorCallable
public com.google.api.gax.rpc.UnaryCallable<CommitCursorRequest,CommitCursorResponse> commitCursorCallable()
- Overrides:
commitCursorCallablein classCursorServiceStub
-
listPartitionCursorsCallable
public com.google.api.gax.rpc.UnaryCallable<ListPartitionCursorsRequest,ListPartitionCursorsResponse> listPartitionCursorsCallable()
- Overrides:
listPartitionCursorsCallablein classCursorServiceStub
-
listPartitionCursorsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListPartitionCursorsRequest,CursorServiceClient.ListPartitionCursorsPagedResponse> listPartitionCursorsPagedCallable()
- Overrides:
listPartitionCursorsPagedCallablein classCursorServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCursorServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-