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

java.lang.Object
  extended by org.gcube.common.core.utils.handlers.lifetime.State
      extended by org.gcube.common.core.utils.handlers.lifetime.State.Running
Enclosing class:
State

public static class State.Running
extends State

Specialises State for the state of a handler that is executing.

The state is public and is associated with a Running 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.Running INSTANCE
           
 
Constructor Summary
protected State.Running()
           
 
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.Running INSTANCE
Constructor Detail

State.Running

protected State.Running()
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.