public static class FakeOperationApi.OperationStashCallable extends OperationCallable<Integer,String,Long,FakeOperationApi.FakeOperation>
| Constructor and Description |
|---|
OperationStashCallable() |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<Void> |
cancel(String operationName,
ApiCallContext context)
Sends a cancellation request to the server for the operation with name
operationName. |
OperationFuture<String,Long,FakeOperationApi.FakeOperation> |
futureCall(Integer request,
ApiCallContext context)
Initiates an operation asynchronously.
|
ApiCallContext |
getCancelContext() |
ApiCallContext |
getContext() |
Integer |
getRequest() |
ApiCallContext |
getResumeContext() |
OperationFuture<String,Long,FakeOperationApi.FakeOperation> |
resumeFutureCall(String operationName,
ApiCallContext context)
Creates a new
OperationFuture to watch an operation that has been initiated previously. |
boolean |
wasCancelCalled() |
call, call, cancel, futureCall, resumeFutureCallpublic OperationFuture<String,Long,FakeOperationApi.FakeOperation> futureCall(Integer request, ApiCallContext context)
OperationCallablefutureCall in class OperationCallable<Integer,String,Long,FakeOperationApi.FakeOperation>request - The request to initiate the operation.context - ApiCallContext to make the call withOperationFuture for the call resultpublic OperationFuture<String,Long,FakeOperationApi.FakeOperation> resumeFutureCall(String operationName, ApiCallContext context)
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<Integer,String,Long,FakeOperationApi.FakeOperation>operationName - The name of the operation to resume.context - ApiCallContext to make the call withOperationFuture for the call result.public com.google.api.core.ApiFuture<Void> cancel(String operationName, ApiCallContext context)
OperationCallableoperationName.cancel in class OperationCallable<Integer,String,Long,FakeOperationApi.FakeOperation>operationName - The name of the operation to cancel.context - ApiCallContext to make the call withpublic ApiCallContext getContext()
public Integer getRequest()
public ApiCallContext getResumeContext()
public boolean wasCancelCalled()
public ApiCallContext getCancelContext()