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
gRPC stub implementation for the CursorService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcCursorServiceStub(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
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()com.google.api.gax.rpc.UnaryCallable<CommitCursorRequest,CommitCursorResponse> static final GrpcCursorServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcCursorServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) static final GrpcCursorServiceStubcreate(CursorServiceStubSettings settings) com.google.longrunning.stub.GrpcOperationsStubbooleanbooleancom.google.api.gax.rpc.UnaryCallable<ListPartitionCursorsRequest,ListPartitionCursorsResponse> com.google.api.gax.rpc.UnaryCallable<ListPartitionCursorsRequest,CursorServiceClient.ListPartitionCursorsPagedResponse> voidshutdown()voidcom.google.api.gax.rpc.BidiStreamingCallable<StreamingCommitCursorRequest,StreamingCommitCursorResponse>
-
Constructor Details
-
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 Details
-
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
- Throws:
InterruptedException
-