|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esperio.AbstractCoordinatedAdapter
com.espertech.esperio.AdapterCoordinatorImpl
public class AdapterCoordinatorImpl
An implementation of AdapterCoordinator.
Field Summary |
---|
Fields inherited from class com.espertech.esperio.AbstractCoordinatedAdapter |
---|
eventsToSend, scheduleSlot, stateManager |
Fields inherited from interface com.espertech.esper.adapter.InputAdapter |
---|
ESPERIO_MAP_EVENT_TYPE |
Constructor Summary | |
---|---|
AdapterCoordinatorImpl(EPServiceProvider epService,
boolean usingEngineThread)
Ctor. |
|
AdapterCoordinatorImpl(EPServiceProvider epService,
boolean usingEngineThread,
boolean usingExternalTimer,
boolean usingTimeSpanEvents)
Ctor. |
Method Summary | |
---|---|
protected void |
close()
Does nothing. |
void |
coordinate(InputAdapter inputAdapter)
Coordinate an InputAdapter. |
SendableEvent |
read()
Get the next event in line to be sent into the runtime , or null if there is no available event. |
protected void |
replaceFirstEventToSend()
Replace the first member of eventsToSend with the next event returned by the read() method of the same Adapter that provided the first event. |
protected void |
reset()
Reset all the changeable state of this ReadableAdapter, as if it were just created. |
Methods inherited from class com.espertech.esperio.AbstractCoordinatedAdapter |
---|
destroy, disallowStateTransitions, getRuntime, getState, pause, resume, setEPService, setScheduleSlot, setSender, setUsingEngineThread, setUsingExternalTimer, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.espertech.esper.adapter.Adapter |
---|
destroy, getState, pause, resume, start, stop |
Constructor Detail |
---|
public AdapterCoordinatorImpl(EPServiceProvider epService, boolean usingEngineThread)
epService
- - the EPServiceProvider for the engine services and runtimeusingEngineThread
- - true if the coordinator should set time by the scheduling service in the engine,
false if it should set time externally through the calling threadpublic AdapterCoordinatorImpl(EPServiceProvider epService, boolean usingEngineThread, boolean usingExternalTimer, boolean usingTimeSpanEvents)
epService
- - the EPServiceProvider for the engine services and runtimeusingEngineThread
- - true if the coordinator should set time by the scheduling service in the engine,
false if it should set time externally through the calling threadusingExternalTimer
- - true to use esper's external timer mechanism instead of internal timingMethod Detail |
---|
public SendableEvent read() throws EPException
CoordinatedAdapter
read
in interface CoordinatedAdapter
EPException
- in case of errors creating the eventpublic void coordinate(InputAdapter inputAdapter)
AdapterCoordinator
coordinate
in interface AdapterCoordinator
inputAdapter
- - the InputAdapter to coordinateprotected void close()
close
in class AbstractCoordinatedAdapter
protected void replaceFirstEventToSend()
replaceFirstEventToSend
in class AbstractCoordinatedAdapter
protected void reset()
reset
in class AbstractCoordinatedAdapter
|
© 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 |