@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
IOException
protected GrpcOperationsStub(OperationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcOperationsStub create(OperationsStubSettings settings) throws IOException
IOException
public static final GrpcOperationsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
public static final GrpcOperationsStub create(com.google.api.gax.rpc.ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.GetOperationRequest,com.google.longrunning.Operation> getOperationCallable()
getOperationCallable
in class OperationsStub
public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.ListOperationsRequest,OperationsClient.ListOperationsPagedResponse> listOperationsPagedCallable()
listOperationsPagedCallable
in class OperationsStub
public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.ListOperationsRequest,com.google.longrunning.ListOperationsResponse> listOperationsCallable()
listOperationsCallable
in class OperationsStub
public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.CancelOperationRequest,com.google.protobuf.Empty> cancelOperationCallable()
cancelOperationCallable
in class OperationsStub
public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.DeleteOperationRequest,com.google.protobuf.Empty> deleteOperationCallable()
deleteOperationCallable
in class OperationsStub
public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.WaitOperationRequest,com.google.longrunning.Operation> waitOperationCallable()
waitOperationCallable
in class OperationsStub
public final void close()
close
in interface AutoCloseable
close
in class OperationsStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException