Class StoreConfigurationChangeListener
- java.lang.Object
-
- org.apache.qpid.server.configuration.store.StoreConfigurationChangeListener
-
- All Implemented Interfaces:
ConfigurationChangeListener
public class StoreConfigurationChangeListener extends Object implements ConfigurationChangeListener
-
-
Constructor Summary
Constructors Constructor Description StoreConfigurationChangeListener(DurableConfigurationStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attributeSet(ConfiguredObject object, String attributeName, Object oldAttributeValue, Object newAttributeValue)
void
bulkChangeEnd(ConfiguredObject<?> object)
Inform the listener that the changes announced by bulkChangeStart are complete.void
bulkChangeStart(ConfiguredObject<?> object)
Inform the listener that several attributes of an object are about to change.void
childAdded(ConfiguredObject<?> object, ConfiguredObject<?> child)
void
childRemoved(ConfiguredObject object, ConfiguredObject child)
void
stateChanged(ConfiguredObject object, State oldState, State newState)
Inform the listener that the passed object has changed stateString
toString()
-
-
-
Constructor Detail
-
StoreConfigurationChangeListener
public StoreConfigurationChangeListener(DurableConfigurationStore store)
-
-
Method Detail
-
stateChanged
public void stateChanged(ConfiguredObject object, State oldState, State newState)
Description copied from interface:ConfigurationChangeListener
Inform the listener that the passed object has changed state- Specified by:
stateChanged
in interfaceConfigurationChangeListener
- Parameters:
object
- the object whose state has changedoldState
- the state prior to the changenewState
- the state after the change
-
childAdded
public void childAdded(ConfiguredObject<?> object, ConfiguredObject<?> child)
- Specified by:
childAdded
in interfaceConfigurationChangeListener
-
bulkChangeStart
public void bulkChangeStart(ConfiguredObject<?> object)
Description copied from interface:ConfigurationChangeListener
Inform the listener that several attributes of an object are about to change. The listener may choose to defer any action in attributeSet until bulkChangeEnd is called. There should not be multiple calls to bulkChangeStart without matching bulkChangeEnd calls in between. There should be no calls to attributeSet for objects other than the one passed as an argument until bulkChangeEnd is called. There should be no call to childRemove between bulkChangeStart/-End calls.- Specified by:
bulkChangeStart
in interfaceConfigurationChangeListener
- Parameters:
object
- the object whose state is about to change- See Also:
ConfigurationChangeListener.bulkChangeEnd(org.apache.qpid.server.model.ConfiguredObject<?>)
-
bulkChangeEnd
public void bulkChangeEnd(ConfiguredObject<?> object)
Description copied from interface:ConfigurationChangeListener
Inform the listener that the changes announced by bulkChangeStart are complete. The listener who has chosen to defer any action in attributeSet after bulkChangeStart was called should now act on those changes. A call to bulkChangeEnd without a prior matching call to bulkChangeStart should have no effect.- Specified by:
bulkChangeEnd
in interfaceConfigurationChangeListener
- Parameters:
object
- the object whose state has changed- See Also:
ConfigurationChangeListener.bulkChangeStart(org.apache.qpid.server.model.ConfiguredObject<?>)
-
childRemoved
public void childRemoved(ConfiguredObject object, ConfiguredObject child)
- Specified by:
childRemoved
in interfaceConfigurationChangeListener
-
attributeSet
public void attributeSet(ConfiguredObject object, String attributeName, Object oldAttributeValue, Object newAttributeValue)
- Specified by:
attributeSet
in interfaceConfigurationChangeListener
-
-