private class DefaultExecutorService.RemoteDistributedTaskPart<V> extends DefaultExecutorService.DistributedTaskPart<V>
Modifier and Type | Field and Description |
---|---|
private org.infinispan.remoting.transport.Address |
executionTarget |
private NotifyingFutureImpl<java.lang.Object> |
future |
distCommand
Constructor and Description |
---|
DefaultExecutorService.RemoteDistributedTaskPart(DistributedTask<V> task,
org.infinispan.commands.read.DistributedExecuteCommand<V> command,
java.util.List<java.lang.Object> inputKeys,
org.infinispan.remoting.transport.Address executionTarget,
int failoverCount) |
Modifier and Type | Method and Description |
---|---|
NotifyingFuture<V> |
attachListener(FutureListener<V> listener)
Attaches a listener and returns the same future instance, to allow for 'building'.
|
boolean |
cancel(boolean mayInterruptIfRunning) |
void |
execute() |
org.infinispan.remoting.transport.Address |
getExecutionTarget() |
protected V |
getResult(long timeoutNanos) |
boolean |
isDone() |
private V |
retrieveResult(java.lang.Object response) |
computeTimeoutNanos, equals, failoverExecution, get, get, getCommand, getInputKeys, getOwningTask, hashCode, innerGet, isCancelled, run, setCancelled, wrapIntoExecutionException
private final org.infinispan.remoting.transport.Address executionTarget
private final NotifyingFutureImpl<java.lang.Object> future
public DefaultExecutorService.RemoteDistributedTaskPart(DistributedTask<V> task, org.infinispan.commands.read.DistributedExecuteCommand<V> command, java.util.List<java.lang.Object> inputKeys, org.infinispan.remoting.transport.Address executionTarget, int failoverCount)
public org.infinispan.remoting.transport.Address getExecutionTarget()
getExecutionTarget
in class DefaultExecutorService.DistributedTaskPart<V>
public void execute()
execute
in class DefaultExecutorService.DistributedTaskPart<V>
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isDone()
protected V getResult(long timeoutNanos) throws java.lang.Exception
getResult
in class DefaultExecutorService.DistributedTaskPart<V>
java.lang.Exception
private V retrieveResult(java.lang.Object response) throws java.lang.Exception
java.lang.Exception
public NotifyingFuture<V> attachListener(FutureListener<V> listener)
NotifyingFuture
listener
- listener to attach