public interface RecoveryManager<RESOLVER,CONTEXT,ID>
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(ID identifier)
Cancel a recovery given the current identifier for a flow (flow event id)
|
void |
cancelAll()
Cancel any recovery currently running in the recovery manager.
|
RESOLVER |
getResolver()
Get the resolver for this recovery manager.
|
void |
initialise()
Initialize the state of the recovery manager clearing down any previously
held states resulting from previous executions.
|
boolean |
isRecovering()
Is the recovery manager currently running a recovery.
|
boolean |
isUnrecoverable()
Is the recovery manager in an unrecoverable state.
|
<EVENT> void |
recover(CONTEXT context,
Throwable throwable,
EVENT event,
ID identifier)
Start or continue a recovery based on the passed CONTEXT
|
void |
recover(String component,
Throwable throwable)
Start or continue a recovery based on the passed CRITERIA.
|
<MANAGED_RESOURCES> |
setManagedResources(MANAGED_RESOURCES managedResources)
Set a resolver which translates the incoming exception and component name
in to an action to be taken by the recovery manager.
|
void |
setResolver(RESOLVER resolver)
Set a resolver which translates the incoming exception and component name
in to an action to be taken by the recovery manager.
|
void setResolver(RESOLVER resolver)
resolver - <MANAGED_RESOURCES> void setManagedResources(MANAGED_RESOURCES managedResources)
MANAGED_RESOURCES - managedResources - RESOLVER getResolver()
<EVENT> void recover(CONTEXT context, Throwable throwable, EVENT event, ID identifier)
EVENT - ID - context - throwable - event - identifier - void recover(String component, Throwable throwable)
component - throwable - boolean isRecovering()
boolean isUnrecoverable()
void cancelAll()
void cancel(ID identifier)
identifier - the identifiervoid initialise()
Copyright © 2007-2017 Ikasan. All Rights Reserved.