Package com.espertech.esperio.jms
Class JMSInputAdapter
java.lang.Object
com.espertech.esperio.jms.JMSInputAdapter
- All Implemented Interfaces:
com.espertech.esper.runtime.client.util.Adapter
,com.espertech.esper.runtime.client.util.AdapterSPI
,com.espertech.esper.runtime.client.util.InputAdapter
- Direct Known Subclasses:
SpringJMSTemplateInputAdapter
public abstract class JMSInputAdapter
extends Object
implements com.espertech.esper.runtime.client.util.InputAdapter, com.espertech.esper.runtime.client.util.AdapterSPI
Created for ESPER.
-
Field Summary
Modifier and TypeFieldDescriptionprotected JMSMessageUnmarshaller
Unmarshaller for JMS messages.protected com.espertech.esper.runtime.internal.kernel.service.EPRuntimeSPI
Engine services.protected long
Start time.protected final com.espertech.esper.runtime.client.util.AdapterStateManager
Manages adapter state.Fields inherited from interface com.espertech.esper.runtime.client.util.InputAdapter
ESPERIO_JSON_EVENT_TYPE, ESPERIO_MAP_EVENT_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Returns the unmarshaller.com.espertech.esper.runtime.client.EPRuntime
com.espertech.esper.runtime.client.util.AdapterState
getState()
void
pause()
void
resume()
void
setJmsMessageUnmarshaller
(JMSMessageUnmarshaller jmsMessageUnmarshaller) Sets the unmarshaller to use.void
setRuntime
(com.espertech.esper.runtime.client.EPRuntime runtime) void
start()
void
stop()
-
Field Details
-
stateManager
protected final com.espertech.esper.runtime.client.util.AdapterStateManager stateManagerManages adapter state. -
runtime
protected com.espertech.esper.runtime.internal.kernel.service.EPRuntimeSPI runtimeEngine services. -
startTime
protected long startTimeStart time. -
jmsMessageUnmarshaller
Unmarshaller for JMS messages.
-
-
Constructor Details
-
JMSInputAdapter
public JMSInputAdapter()
-
-
Method Details
-
getJmsMessageUnmarshaller
Returns the unmarshaller.- Returns:
- unmarshaller
-
setJmsMessageUnmarshaller
Sets the unmarshaller to use.- Parameters:
jmsMessageUnmarshaller
- is the unmarshaller to use
-
getRuntime
public com.espertech.esper.runtime.client.EPRuntime getRuntime()- Specified by:
getRuntime
in interfacecom.espertech.esper.runtime.client.util.AdapterSPI
-
setRuntime
public void setRuntime(com.espertech.esper.runtime.client.EPRuntime runtime) - Specified by:
setRuntime
in interfacecom.espertech.esper.runtime.client.util.AdapterSPI
-
start
public void start() throws com.espertech.esper.common.client.EPException- Specified by:
start
in interfacecom.espertech.esper.runtime.client.util.Adapter
- Throws:
com.espertech.esper.common.client.EPException
-
pause
public void pause() throws com.espertech.esper.common.client.EPException- Specified by:
pause
in interfacecom.espertech.esper.runtime.client.util.Adapter
- Throws:
com.espertech.esper.common.client.EPException
-
resume
public void resume() throws com.espertech.esper.common.client.EPException- Specified by:
resume
in interfacecom.espertech.esper.runtime.client.util.Adapter
- Throws:
com.espertech.esper.common.client.EPException
-
stop
public void stop() throws com.espertech.esper.common.client.EPException- Specified by:
stop
in interfacecom.espertech.esper.runtime.client.util.Adapter
- Throws:
com.espertech.esper.common.client.EPException
-
destroy
public void destroy() throws com.espertech.esper.common.client.EPException- Specified by:
destroy
in interfacecom.espertech.esper.runtime.client.util.Adapter
- Throws:
com.espertech.esper.common.client.EPException
-
getState
public com.espertech.esper.runtime.client.util.AdapterState getState()- Specified by:
getState
in interfacecom.espertech.esper.runtime.client.util.Adapter
-