public interface RecoveryManager<RESOLVER>
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
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.
|
void |
recover(String component,
Throwable throwable)
Start or continue a recovery based on the passed CRITERIA.
|
<EVENT,IDENTIFIER> |
recover(String component,
Throwable throwable,
EVENT event,
IDENTIFIER identifier)
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,IDENTIFIER> void recover(String component, Throwable throwable, EVENT event, IDENTIFIER identifier)
EVENT - IDENTIFIER - component - throwable - event - identifier - void recover(String component, Throwable throwable)
component - throwable - boolean isRecovering()
boolean isUnrecoverable()
void cancel()
void initialise()
Copyright © 2007-2015 Ikasan. All Rights Reserved.