Package com.google.longrunning.stub
Class GrpcOperationsStub
java.lang.Object
com.google.longrunning.stub.OperationsStub
com.google.longrunning.stub.GrpcOperationsStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for Google Long Running Operations API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcOperationsStub(OperationsStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcOperationsStub, using the given settings.protectedGrpcOperationsStub(OperationsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcOperationsStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) UnaryCallable<CancelOperationRequest,com.google.protobuf.Empty> final voidclose()static final GrpcOperationsStubcreate(ClientContext clientContext) static final GrpcOperationsStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcOperationsStubcreate(OperationsStubSettings settings) UnaryCallable<DeleteOperationRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcOperationsStub
protected GrpcOperationsStub(OperationsStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcOperationsStub, 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
-
GrpcOperationsStub
protected GrpcOperationsStub(OperationsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcOperationsStub, 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
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcOperationsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationCallable
- Overrides:
getOperationCallablein classOperationsStub
-
listOperationsPagedCallable
public UnaryCallable<ListOperationsRequest,OperationsClient.ListOperationsPagedResponse> listOperationsPagedCallable()- Overrides:
listOperationsPagedCallablein classOperationsStub
-
listOperationsCallable
- Overrides:
listOperationsCallablein classOperationsStub
-
cancelOperationCallable
- Overrides:
cancelOperationCallablein classOperationsStub
-
deleteOperationCallable
- Overrides:
deleteOperationCallablein classOperationsStub
-
waitOperationCallable
- Overrides:
waitOperationCallablein classOperationsStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classOperationsStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-