Class ReplicaMessageManager

    • Field Detail

      • REPLICA_MESSAGE_ALARM_MGR

        public static final java.lang.String REPLICA_MESSAGE_ALARM_MGR
        See Also:
        Constant Field Values
      • NOTIFICATION_ENABLED_PROP

        public static final java.lang.String NOTIFICATION_ENABLED_PROP
        See Also:
        Constant Field Values
      • NOTIFICATION_DELAY_PROP

        public static final java.lang.String NOTIFICATION_DELAY_PROP
        See Also:
        Constant Field Values
      • PROCESS_MESSAGE_URL

        public static final java.lang.String PROCESS_MESSAGE_URL
        See Also:
        Constant Field Values
    • Method Detail

      • propertiesChange

        public void propertiesChange​(JProperties properties)
        Description copied from interface: JPropertiesListener
        Invoked after properties have been modified in JCMS and save on disk.

        You cannot alter the value received in parameters.

        Note that properties parameter may be null, a limited set of site properties, or all site properties.

        To check that a property has been modified, reload the "current" property instead using channel.getProperties or channel.getProperty.

        Specified by:
        propertiesChange in interface JPropertiesListener
        Parameters:
        properties - the properties which have been submitted to change
      • handleAlarm

        public void handleAlarm​(AlarmEntry entry)
        Description copied from interface: AlarmListener
        Invoked when an alarm is triggered.
        Specified by:
        handleAlarm in interface AlarmListener
        Parameters:
        entry - the AlarmEntry which has been triggered.
      • processNewMessages

        public void processNewMessages​(java.lang.String sender)
        Starts new message processing.
        Parameters:
        sender - the sender
        Since:
        jcms-10.0.3
      • getNewMessageList

        protected java.util.List<ReplicaMessage> getNewMessageList()
        Returns all the ReplicaMessage not yet processed by this replica.
        Returns:
        all the ReplicaMessage not yet processed by this replica (never return null).
        Since:
        jcms-10.0.0
      • sendMessage

        public void sendMessage​(ReplicaMessage msg)
        Sends the given message.
        Parameters:
        msg - the message
        Since:
        jcms-10.0.0