Interface Adapter

All Known Subinterfaces:
AdapterSPI, InputAdapter

public interface Adapter
An Adapter takes some external data, converts it into events, and sends it into the runtime.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Destroy the Adapter, stopping the sending of all events and releasing all the resources, and disallowing any further state changes on the Adapter.
    Get the state of this Adapter.
    void
    Pause the sending of events after a Adapter has been started.
    void
    Resume sending events after the Adapter has been paused.
    void
    Start the sending of events into the runtime egine.
    void
    Stop sending events and return the Adapter to the OPENED state, ready to be started once again.
  • Method Details

    • start

      void start() throws com.espertech.esper.common.client.EPException
      Start the sending of events into the runtime egine.
      Throws:
      com.espertech.esper.common.client.EPException - in case of errors processing the events
    • pause

      void pause() throws com.espertech.esper.common.client.EPException
      Pause the sending of events after a Adapter has been started.
      Throws:
      com.espertech.esper.common.client.EPException - if this Adapter has already been stopped
    • resume

      void resume() throws com.espertech.esper.common.client.EPException
      Resume sending events after the Adapter has been paused.
      Throws:
      com.espertech.esper.common.client.EPException - in case of errors processing the events
    • stop

      void stop() throws com.espertech.esper.common.client.EPException
      Stop sending events and return the Adapter to the OPENED state, ready to be started once again.
      Throws:
      com.espertech.esper.common.client.EPException - in case of errors releasing resources
    • destroy

      void destroy() throws com.espertech.esper.common.client.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:
      com.espertech.esper.common.client.EPException - to indicate errors during destroy
    • getState

      AdapterState getState()
      Get the state of this Adapter.
      Returns:
      state