private abstract class DefaultExecutorService.DistributedTaskPart<V> extends java.lang.Object implements NotifyingFuture<V>, java.util.concurrent.RunnableFuture<V>
Modifier and Type | Field and Description |
---|---|
private boolean |
cancelled |
protected org.infinispan.commands.read.DistributedExecuteCommand<V> |
distCommand |
private int |
failedOverCount |
private java.util.List<java.lang.Object> |
inputKeys |
private DistributedTask<V> |
owningTask |
Modifier | Constructor and Description |
---|---|
protected |
DefaultExecutorService.DistributedTaskPart(java.util.List<java.lang.Object> inputKeys,
org.infinispan.commands.read.DistributedExecuteCommand<V> command,
DistributedTask<V> task,
int failedOverCount) |
Modifier and Type | Method and Description |
---|---|
protected long |
computeTimeoutNanos(long timeout,
java.util.concurrent.TimeUnit unit) |
boolean |
equals(java.lang.Object obj) |
abstract void |
execute() |
protected V |
failoverExecution(java.lang.Exception cause,
long timeout,
java.util.concurrent.TimeUnit unit) |
V |
get() |
V |
get(long timeout,
java.util.concurrent.TimeUnit unit) |
org.infinispan.commands.read.DistributedExecuteCommand<V> |
getCommand() |
abstract org.infinispan.remoting.transport.Address |
getExecutionTarget() |
java.util.List<java.lang.Object> |
getInputKeys() |
private DefaultExecutorService |
getOuterType() |
DistributedTask<V> |
getOwningTask() |
protected abstract V |
getResult(long timeoutNanos) |
int |
hashCode() |
protected V |
innerGet(long timeout,
java.util.concurrent.TimeUnit unit) |
boolean |
isCancelled() |
void |
run() |
protected void |
setCancelled() |
protected java.util.concurrent.ExecutionException |
wrapIntoExecutionException(java.lang.Exception e) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
attachListener
protected final org.infinispan.commands.read.DistributedExecuteCommand<V> distCommand
private final java.util.List<java.lang.Object> inputKeys
private final DistributedTask<V> owningTask
private int failedOverCount
private volatile boolean cancelled
protected DefaultExecutorService.DistributedTaskPart(java.util.List<java.lang.Object> inputKeys, org.infinispan.commands.read.DistributedExecuteCommand<V> command, DistributedTask<V> task, int failedOverCount)
public java.util.List<java.lang.Object> getInputKeys()
public org.infinispan.commands.read.DistributedExecuteCommand<V> getCommand()
public DistributedTask<V> getOwningTask()
public abstract org.infinispan.remoting.transport.Address getExecutionTarget()
private DefaultExecutorService getOuterType()
public abstract void execute()
public void run()
run
in interface java.lang.Runnable
run
in interface java.util.concurrent.RunnableFuture<V>
public boolean isCancelled()
isCancelled
in interface java.util.concurrent.Future<V>
public V get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
get
in interface java.util.concurrent.Future<V>
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public V get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
get
in interface java.util.concurrent.Future<V>
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
protected V innerGet(long timeout, java.util.concurrent.TimeUnit unit) throws java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException, java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
java.lang.InterruptedException
protected abstract V getResult(long timeoutNanos) throws java.lang.Exception
java.lang.Exception
protected long computeTimeoutNanos(long timeout, java.util.concurrent.TimeUnit unit)
protected java.util.concurrent.ExecutionException wrapIntoExecutionException(java.lang.Exception e)
protected V failoverExecution(java.lang.Exception cause, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.Exception
java.lang.Exception
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected void setCancelled()