com.espertech.esper.adapter
Interface Adapter

All Known Subinterfaces:
InputAdapter, OutputAdapter

public interface Adapter

An Adapter takes some external data, converts it into events, and sends it into the runtime engine.


Method Summary
 void destroy()
          Destroy the Adapter, stopping the sending of all events and releasing all the resources, and disallowing any further state changes on the Adapter.
 AdapterState getState()
          Get the state of this Adapter.
 void pause()
          Pause the sending of events after a Adapter has been started.
 void resume()
          Resume sending events after the Adapter has been paused.
 void start()
          Start the sending of events into the runtime egine.
 void stop()
          Stop sending events and return the Adapter to the OPENED state, ready to be started once again.
 

Method Detail

start

void start()
           throws EPException
Start the sending of events into the runtime egine.

Throws:
EPException - in case of errors processing the events

pause

void pause()
           throws EPException
Pause the sending of events after a Adapter has been started.

Throws:
EPException - if this Adapter has already been stopped

resume

void resume()
            throws EPException
Resume sending events after the Adapter has been paused.

Throws:
EPException - in case of errors processing the events

stop

void stop()
          throws EPException
Stop sending events and return the Adapter to the OPENED state, ready to be started once again.

Throws:
EPException - in case of errors releasing resources

destroy

void destroy()
             throws EPException
Destroy the Adapter, stopping the sending of all events and releasing all the resources, and disallowing any further state changes on the Adapter.

Throws:
EPException - to indicate errors during destroy

getState

AdapterState getState()
Get the state of this Adapter.

Returns:
state

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com