public class CompositeComponentUnavailableAction extends Object implements ComponentUnavailableAction
| Constructor and Description |
|---|
CompositeComponentUnavailableAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(ComponentUnavailableAction action,
Throwable e) |
void |
execute(Throwable e)
Executes the action using the given exception
|
protected ExecutorService |
getExecutorService()
Gets the
ExecutorService to be used for timeout-aware
actions. |
void |
init() |
void |
setActions(List<ComponentUnavailableAction> actions) |
void |
setActionTimeoutMs(long actionTimeoutMs) |
public void setActions(List<ComponentUnavailableAction> actions)
public void setActionTimeoutMs(long actionTimeoutMs)
public void init()
public void execute(Throwable e)
ComponentUnavailableActionexecute in interface ComponentUnavailableActione - the exceptionprotected ExecutorService getExecutorService()
ExecutorService to be used for timeout-aware
actions.
If no ExecutorService has been defined a default
of Executors.newCachedThreadPool() is used during
init().
ExecutorServiceprotected void execute(ComponentUnavailableAction action, Throwable e) throws Throwable
ThrowableCopyright © 2014 Alfresco Software. All rights reserved.