public static class ServicePoolManager.AllocationData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
open
The counter for open tasks, i.e.
|
protected jadex.commons.future.IntermediateFuture |
result
The result future.
|
protected boolean |
retry
The retry flag, i.e.
|
protected java.lang.Object |
user
The user data (if any).
|
Constructor and Description |
---|
AllocationData(int open,
boolean retry,
java.lang.Object user)
Create a new allocation data.
|
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IntermediateFuture |
getResult()
Get the result.
|
java.lang.Object |
getUserData()
Get the user data.
|
boolean |
isRetry()
Test if the retry flag is set.
|
void |
taskFailed(java.lang.Exception e)
A task has failed and is not retried.
|
void |
taskFinished(java.lang.Object result)
Add an intermediate result.
|
protected int open
protected boolean retry
protected java.lang.Object user
protected jadex.commons.future.IntermediateFuture result
public AllocationData(int open, boolean retry, java.lang.Object user)
public java.lang.Object getUserData()
public jadex.commons.future.IntermediateFuture getResult()
public void taskFinished(java.lang.Object result)
public void taskFailed(java.lang.Exception e)
public boolean isRetry()