org.gcube.common.core.utils.handlers.lifetime
Class State.Failed

java.lang.Object
  extended by org.gcube.common.core.utils.handlers.lifetime.State
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.common.core.utils.handlers.lifetime.State
State.Created, State.Done, State.Failed, State.Running, State.Suspended
 
Field Summary
static State.Failed INSTANCE
           
 
Constructor Summary
State.Failed()
           
 
Method Summary
protected  void addPrevious(List<State> previous)
          Adds the states from which a handler may transition to this state.
 Event.LifetimeEvent getLifetimeEvent()
          Returns a Event.LifetimeEvent for the transition to this state.
 
Methods inherited from class org.gcube.common.core.utils.handlers.lifetime.State
equals, getPrevious, hashCode, onEnter, onExit, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final State.Failed INSTANCE
Constructor Detail

State.Failed

public State.Failed()
Method Detail

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 © 2013. All Rights Reserved.