Interface IEventAdapter

All Superinterfaces:
IDisposable, IEntity

public interface IEventAdapter extends IEntity
Monitors the instance for events. Receives events from the instance, filter the events, only send the selected events in order to reduce network traffic and applications workload.
  • Method Details

    • addISListener

      void addISListener(ISListener listener)
      Registers the ISListener.
      Parameters:
      listener - Event listener to add.
    • removeISListener

      void removeISListener(ISListener listener)
      Unregisters the ISListener.
      Parameters:
      listener - Event listener to remove.
    • getInstance

      IInstance getInstance() throws Exception, altitude.integrationServer.exceptions.ISException
      Returns the instance.
      Throws:
      Exception
      altitude.integrationServer.exceptions.ISException
    • subscribe

      int subscribe(ISEvent evt) throws Exception, altitude.integrationServer.exceptions.ISException
      Subscribes an event.
      Parameters:
      evt - The event to subscribe.
      Returns:
      The subscription identifier.
      Throws:
      Exception
      altitude.integrationServer.exceptions.ISException
    • unsubscribe

      void unsubscribe(int subscriptionId) throws Exception, altitude.integrationServer.exceptions.ISException
      Unsubscribes an event.
      Parameters:
      subscriptionId - The subscription identifier.
      Throws:
      Exception
      altitude.integrationServer.exceptions.ISException