Groovy Documentation

org.linkedin.groovy.util.state
[Groovy] Interface StateChangeListener


interface StateChangeListener

The callback for state changes. The callback implementation should be lightweight.

Authors:
ypujante@linkedin.com


Method Summary
void onStateChange(java.lang.Object oldState, java.lang.Object newState)

On state change.

 

Method Detail

onStateChange

void onStateChange(java.lang.Object oldState, java.lang.Object newState)
On state change. Called only when the state (of the state machine) changes. It is called with the new state (currentState/transitionState/error)


 

Groovy Documentation