@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcOperationsStub extends OperationsStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcOperationsStub(OperationsStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcOperationsStub, using the given settings.
|
protected |
GrpcOperationsStub(OperationsStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcOperationsStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.CancelOperationRequest,com.google.protobuf.Empty> |
cancelOperationCallable() |
void |
close() |
static GrpcOperationsStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static GrpcOperationsStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcOperationsStub |
create(OperationsStubSettings settings) |
com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.DeleteOperationRequest,com.google.protobuf.Empty> |
deleteOperationCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.GetOperationRequest,com.google.longrunning.Operation> |
getOperationCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.ListOperationsRequest,com.google.longrunning.ListOperationsResponse> |
listOperationsCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.ListOperationsRequest,OperationsClient.ListOperationsPagedResponse> |
listOperationsPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.WaitOperationRequest,com.google.longrunning.Operation> |
waitOperationCallable() |
protected GrpcOperationsStub(OperationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected GrpcOperationsStub(OperationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcOperationsStub create(OperationsStubSettings settings) throws IOException
IOExceptionpublic static final GrpcOperationsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcOperationsStub create(com.google.api.gax.rpc.ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.GetOperationRequest,com.google.longrunning.Operation> getOperationCallable()
getOperationCallable in class OperationsStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.ListOperationsRequest,OperationsClient.ListOperationsPagedResponse> listOperationsPagedCallable()
listOperationsPagedCallable in class OperationsStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.ListOperationsRequest,com.google.longrunning.ListOperationsResponse> listOperationsCallable()
listOperationsCallable in class OperationsStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.CancelOperationRequest,com.google.protobuf.Empty> cancelOperationCallable()
cancelOperationCallable in class OperationsStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.DeleteOperationRequest,com.google.protobuf.Empty> deleteOperationCallable()
deleteOperationCallable in class OperationsStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.WaitOperationRequest,com.google.longrunning.Operation> waitOperationCallable()
waitOperationCallable in class OperationsStubpublic final void close()
close in interface AutoCloseableclose in class OperationsStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedException