Class CMEventHandler

Direct Known Subclasses:
CMFileSyncEventHandler, CMMqttEventHandler

public abstract class CMEventHandler extends CMServiceManager
The CMEventHandler class represents a CM event handler that processes incoming events.

CM internally has multiple event handlers according to event types.

  • Constructor Details

    • CMEventHandler

      public CMEventHandler(CMInfo cmInfo)
  • Method Details

    • processEvent

      public abstract boolean processEvent(CMEvent event)
      Handles an incoming CM event.

      A sub-class implements this method and it is called by CM whenever the event with a specific event type is received.

      Parameters:
      event - - the incoming CM event.
      Returns:
      true if the event is successfully processed, or false.