Class ReplicaMessageManager

java.lang.Object
com.jalios.jcms.replicamessage.ReplicaMessageManager
All Implemented Interfaces:
DBConstants, JcmsConstants, AlarmListener, JaliosConstants, JPropertiesListener

public class ReplicaMessageManager extends Object implements JPropertiesListener, AlarmListener, DBConstants, JcmsConstants
  • Field Details

  • Method Details

    • getInstance

      public static ReplicaMessageManager getInstance()
    • 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
    • addListener

      public void addListener(ReplicaMessageListener listener)
    • removeListener

      public void removeListener(ReplicaMessageListener listener)
    • 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(String sender)
      Starts new message processing.
      Parameters:
      sender - the sender
      Since:
      jcms-10.0.3
    • getReplicaMessageSummary

      public List<ReplicaMessageSummary> getReplicaMessageSummary()
    • deleteReplicaMessage

      public boolean deleteReplicaMessage(String source, String target)
    • getNewMessageList

      protected 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