|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.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 allowedpublic void stop() throws IllegalStateTransitionException
IllegalStateTransitionException
- if the transition isn't allowedpublic void pause() throws IllegalStateTransitionException
IllegalStateTransitionException
- if the transition isn't allowedpublic void resume() throws IllegalStateTransitionException
IllegalStateTransitionException
- if the state transition is not allowedpublic void destroy() throws IllegalStateTransitionException
IllegalStateTransitionException
- if the transition isn't allowedpublic void disallowStateTransitions()
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |