Class Replicator


  • public class Replicator
    extends Object
    Helper class for replicating states
    • Constructor Detail

      • Replicator

        public Replicator()
    • Method Detail

      • removeAndReplicateState

        public static void removeAndReplicateState​(String key,
                                                   org.apache.axis2.context.ConfigurationContext configCtx)
        Helper method to replicates states of the property with given key Removes the property and then replicates the current state so that all instances across cluster can see this state
        Parameters:
        key - The key of the property
        configCtx - Axis2 configuration context
      • setAndReplicateState

        public static void setAndReplicateState​(String key,
                                                Object value,
                                                org.apache.axis2.context.ConfigurationContext configCtx)
        Helper method to replicates states of the property with given key replicates the given state so that all instances across cluster can see this state
        Parameters:
        key - The key of the property
        value - The value of the property
        configCtx - Axis2 COnfiguration Context