org.gcube.common.core.utils.handlers.lifetime
Class State.Failed
java.lang.Object
org.gcube.common.core.utils.handlers.lifetime.State
org.gcube.common.core.utils.handlers.lifetime.State.Failed
- Enclosing class:
- State
public static class State.Failed
- extends State
Specialises State for the state of a handler that has failed prior or during its execution.
The state is public and is associated with a Failed event.
INSTANCE
public static final State.Failed INSTANCE
State.Failed
public State.Failed()
addPrevious
protected void addPrevious(List<State> previous)
- Description copied from class:
State
- Adds the states from which a handler may transition to this state.
- Specified by:
addPrevious in class State
- Parameters:
previous - the previous states.
getLifetimeEvent
public Event.LifetimeEvent getLifetimeEvent()
- Description copied from class:
State
- Returns a
Event.LifetimeEvent for the transition to this state.
Return null if the transition should not be notified.
- Overrides:
getLifetimeEvent in class State
- Returns:
- the event.
Copyright © 2012. All Rights Reserved.