public class RemoteOperationFutureListener<T extends RemoteOperationResult> extends Object implements AsyncFuture<Object>
Constructor and Description |
---|
RemoteOperationFutureListener(Logger logger,
AsyncFutureListener<Object> listener) |
RemoteOperationFutureListener(Logger logger,
AsyncFutureListener<Object> listener,
boolean getResultOnCompletion) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
Object |
get() |
Object |
get(long timeout,
TimeUnit unit) |
protected Object |
getResult(RemoteOperationRequest<T> request) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
onOperationCompletion(RemoteOperationRequest<T> request,
RemoteOperationsExecutorProxy sourceProxy) |
protected boolean |
onOperationResultArrival(RemoteOperationRequest<T> request) |
void |
setListener(AsyncFutureListener<Object> listener) |
void |
waitForCompletion() |
boolean |
waitForCompletion(long timeout,
TimeUnit unit) |
protected final Logger _logger
public RemoteOperationFutureListener(Logger logger, AsyncFutureListener<Object> listener)
public RemoteOperationFutureListener(Logger logger, AsyncFutureListener<Object> listener, boolean getResultOnCompletion)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<Object>
public Object get() throws InterruptedException, ExecutionException
get
in interface Future<Object>
InterruptedException
ExecutionException
public Object get(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, ExecutionException
get
in interface Future<Object>
InterruptedException
TimeoutException
ExecutionException
public void setListener(AsyncFutureListener<Object> listener)
setListener
in interface AsyncFuture<Object>
public void waitForCompletion() throws InterruptedException
InterruptedException
public boolean waitForCompletion(long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
public void onOperationCompletion(RemoteOperationRequest<T> request, RemoteOperationsExecutorProxy sourceProxy)
protected boolean onOperationResultArrival(RemoteOperationRequest<T> request)
protected Object getResult(RemoteOperationRequest<T> request) throws Exception
Exception
Copyright © GigaSpaces.