public interface Caller
Modifier and Type | Method and Description |
---|---|
void |
add(Callable callable)
Add a callable to the list of callables of the caller.
|
boolean |
call()
Call all callables in the list of callables of the caller.
|
boolean |
getCollectExceptions()
Get if the Caller can collect exceptions or
exit in the first exception produced.
|
List |
getExceptions()
Return the list of collected exceptions or null.
|
void |
setCollectExceptions(boolean collectExceptions)
Set in the caller the behabior of collect al exceptions
and continue calling the next callable in the list of our
callables.
|
boolean getCollectExceptions()
void setCollectExceptions(boolean collectExceptions)
collectExceptions
- void add(Callable callable)
callable
- List getExceptions()
boolean call()