@InternalApi(value="For use by transport-specific implementations") public class EntryPointOperationCallable<RequestT,ResponseT,MetadataT,OperationT> extends OperationCallable<RequestT,ResponseT,MetadataT,OperationT>
Public for technical reasons - for advanced usage.
| Constructor and Description |
|---|
EntryPointOperationCallable(OperationCallable<RequestT,ResponseT,MetadataT,OperationT> callable,
ApiCallContext defaultCallContext) |
EntryPointOperationCallable(OperationCallable<RequestT,ResponseT,MetadataT,OperationT> callable,
ApiCallContext defaultCallContext,
List<ApiCallContextEnhancer> callContextEnhancers) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<Void> |
cancel(String operationName,
ApiCallContext thisCallContext)
Sends a cancellation request to the server for the operation with name
operationName. |
OperationFuture<ResponseT,MetadataT,OperationT> |
futureCall(RequestT request,
ApiCallContext thisCallContext)
Initiates an operation asynchronously.
|
OperationFuture<ResponseT,MetadataT,OperationT> |
resumeFutureCall(String operationName,
ApiCallContext thisCallContext)
Creates a new
OperationFuture to watch an operation that has been initiated previously. |
call, call, cancel, futureCall, resumeFutureCallpublic EntryPointOperationCallable(OperationCallable<RequestT,ResponseT,MetadataT,OperationT> callable, ApiCallContext defaultCallContext)
public EntryPointOperationCallable(OperationCallable<RequestT,ResponseT,MetadataT,OperationT> callable, ApiCallContext defaultCallContext, List<ApiCallContextEnhancer> callContextEnhancers)
public OperationFuture<ResponseT,MetadataT,OperationT> futureCall(RequestT request, ApiCallContext thisCallContext)
OperationCallablefutureCall in class OperationCallable<RequestT,ResponseT,MetadataT,OperationT>request - The request to initiate the operation.thisCallContext - ApiCallContext to make the call withOperationFuture for the call resultpublic OperationFuture<ResponseT,MetadataT,OperationT> resumeFutureCall(String operationName, ApiCallContext thisCallContext)
OperationCallableOperationFuture to watch an operation that has been initiated previously.
Note: This is not type-safe at static time; the result type can only be checked once the
operation finishes.resumeFutureCall in class OperationCallable<RequestT,ResponseT,MetadataT,OperationT>operationName - The name of the operation to resume.thisCallContext - ApiCallContext to make the call withOperationFuture for the call result.public com.google.api.core.ApiFuture<Void> cancel(String operationName, ApiCallContext thisCallContext)
OperationCallableoperationName.cancel in class OperationCallable<RequestT,ResponseT,MetadataT,OperationT>operationName - The name of the operation to cancel.thisCallContext - ApiCallContext to make the call with