|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.esper.adapter.AdapterStateManager
public class AdapterStateManager
A utility to manage the state transitions for an InputAdapter.
| Constructor Summary | |
|---|---|
AdapterStateManager()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Transition into the DESTROYED state. |
void |
disallowStateTransitions()
Disallow future state changes, and throw an IllegalStateTransitionException if they are attempted. |
AdapterState |
getState()
|
void |
pause()
Transition into the PAUSED state. |
void |
resume()
Transition into the STARTED state (from the PAUSED state). |
void |
start()
Transition into the STARTED state (from the OPENED state). |
void |
stop()
Transition into the OPENED state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdapterStateManager()
| Method Detail |
|---|
public AdapterState getState()
public void start()
throws IllegalStateTransitionException
IllegalStateTransitionException - if the transition is not allowed
public void stop()
throws IllegalStateTransitionException
IllegalStateTransitionException - if the transition isn't allowed
public void pause()
throws IllegalStateTransitionException
IllegalStateTransitionException - if the transition isn't allowed
public void resume()
throws IllegalStateTransitionException
IllegalStateTransitionException - if the state transition is not allowed
public void destroy()
throws IllegalStateTransitionException
IllegalStateTransitionException - if the transition isn't allowedpublic void disallowStateTransitions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||