Class AbstractEventProducer

    • Field Detail

      • logAllMessages

        protected boolean logAllMessages
    • Constructor Detail

      • AbstractEventProducer

        public AbstractEventProducer()
    • Method Detail

      • sendInfo

        public void sendInfo​(String msg)
        Description copied from interface: EventProducer
        send an info event with the type automatically filled in as the caller class name
        Specified by:
        sendInfo in interface EventProducer
        Parameters:
        msg - - event message
      • sendWatch

        public void sendWatch​(String msg)
        Description copied from interface: EventProducer
        send an watch event with the type automatically filled in as the caller class name
        Specified by:
        sendWatch in interface EventProducer
        Parameters:
        msg - - event message
      • sendWarning

        public void sendWarning​(String msg)
        Description copied from interface: EventProducer
        send an warning event with the type automatically filled in as the caller class name
        Specified by:
        sendWarning in interface EventProducer
        Parameters:
        msg - - event message
      • sendCritical

        public void sendCritical​(String msg)
        Description copied from interface: EventProducer
        send an critical event with the type automatically filled in as the caller class name
        Specified by:
        sendCritical in interface EventProducer
        Parameters:
        msg - - event message
      • sendDistress

        public void sendDistress​(String msg)
        Description copied from interface: EventProducer
        send an distress event with the type automatically filled in as the caller class name
        Specified by:
        sendDistress in interface EventProducer
        Parameters:
        msg - - event message
      • sendSevere

        public void sendSevere​(String msg)
        Description copied from interface: EventProducer
        send an severe event with the type automatically filled in as the caller class name
        Specified by:
        sendSevere in interface EventProducer
        Parameters:
        msg - - event message
      • setRepeatedEventReduction

        public void setRepeatedEventReduction​(boolean repeatedEventReduction,
                                              long repeatedEventTimeoutMillisec)
        By default event repetitions are checked for possible reduction. Disable if 'realtime' events are required.
        Specified by:
        setRepeatedEventReduction in interface EventProducer
        Parameters:
        repeatedEventReduction - if true - enable the reduction of events.
        repeatedEventTimeoutMillisec - - how long to keep quiet in case of equal events being sent
      • flushEventBuffer

        protected void flushEventBuffer​(boolean startNewSequence)
      • newEvent

        public Db.Event.Builder newEvent()
        Description copied from interface: EventProducer
        Creates a default Event Builder with these fields pre-filled: source, seqNo, receptionTime, generationTime
        Specified by:
        newEvent in interface EventProducer
      • getMissionTime

        public abstract long getMissionTime()