private class DefaultExecutorService.LocalDistributedTaskPart<V> extends DefaultExecutorService.DistributedTaskPart<V>
Modifier and Type | Field and Description |
---|---|
private NotifyingFutureImpl<V> |
future |
distCommand
Constructor and Description |
---|
DefaultExecutorService.LocalDistributedTaskPart(DistributedTask<V> task,
org.infinispan.commands.read.DistributedExecuteCommand<V> command,
java.util.List<java.lang.Object> inputKeys,
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() |
computeTimeoutNanos, equals, failoverExecution, get, get, getCommand, getInputKeys, getOwningTask, hashCode, innerGet, isCancelled, run, setCancelled, wrapIntoExecutionException
private final NotifyingFutureImpl<V> future
public DefaultExecutorService.LocalDistributedTaskPart(DistributedTask<V> task, org.infinispan.commands.read.DistributedExecuteCommand<V> command, java.util.List<java.lang.Object> inputKeys, int failoverCount)
public boolean isDone()
public boolean cancel(boolean mayInterruptIfRunning)
protected V getResult(long timeoutNanos) throws java.lang.Exception
getResult
in class DefaultExecutorService.DistributedTaskPart<V>
java.lang.Exception
public org.infinispan.remoting.transport.Address getExecutionTarget()
getExecutionTarget
in class DefaultExecutorService.DistributedTaskPart<V>
public void execute()
execute
in class DefaultExecutorService.DistributedTaskPart<V>
public NotifyingFuture<V> attachListener(FutureListener<V> listener)
NotifyingFuture
listener
- listener to attach