public class RemoteOperationFutureListener<T extends RemoteOperationResult> extends Object implements AsyncFuture<Object>
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
_logger |
Constructor and Description |
---|
RemoteOperationFutureListener(org.slf4j.Logger logger,
AsyncFutureListener<Object> listener) |
RemoteOperationFutureListener(org.slf4j.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) |
public RemoteOperationFutureListener(org.slf4j.Logger logger, AsyncFutureListener<Object> listener)
public RemoteOperationFutureListener(org.slf4j.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.