Class EventType

    • Constructor Detail

      • EventType

        protected EventType()
        Constructor used for deserialization.
      • EventType

        protected EventType​(EventTypeOuter.EventTypeEnum neweventTypeEnum)
        Constructor
        Parameters:
        neweventTypeEnum - Event type enum
    • Method Detail

      • init

        public abstract void init​(AccountID accountID,
                                  PasswordCredential credential,
                                  String namespace,
                                  LogicModuleAPI lm)
        Initialize (if needed) IDs from specifications (example: className -> class ID)
        Parameters:
        accountID - ID of account registering the Event Type
        credential - Credentials of account registering the Event Type
        namespace - Namespace being used to register events. Used for registration of classes and ECAs at once.
        lm - Reference to LogicModule to seek for IDs and so on.
      • checkIsEventType

        public abstract boolean checkIsEventType​(EventMessage message)
        Checks if event received belongs to this event type.
        Parameters:
        message - Event message
        Returns:
        TRUE if message belongs to this event type. FALSE otherwise.
      • getPriority

        public final int getPriority()
        Get priority of the Event Type
        Returns:
        Priority of the event. Used by Notification Manager for instance: store notifications before delete.
      • setEventTypeEnum

        public final void setEventTypeEnum​(EventTypeOuter.EventTypeEnum theEventTypeEnum)
        Parameters:
        theEventTypeEnum - the eventTypeEnum to set