Package org.apache.synapse.util
Class Replicator
- java.lang.Object
-
- org.apache.synapse.util.Replicator
-
public class Replicator extends Object
Helper class for replicating states
-
-
Constructor Summary
Constructors Constructor Description Replicator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 statestatic 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
-
-
-
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 propertyconfigCtx
- 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 propertyvalue
- The value of the propertyconfigCtx
- Axis2 COnfiguration Context
-
-