public class StateChangeDispatcher extends Object
Constructor and Description |
---|
StateChangeDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ItemStateListener listener)
Add an
ItemStateListener . |
void |
notifyNodeAdded(NodeState state,
Name name,
int index,
NodeId id)
Notify listeners about changes to some state.
|
void |
notifyNodeModified(NodeState state)
Notify listeners about changes to some state.
|
void |
notifyNodeRemoved(NodeState state,
Name name,
int index,
NodeId id)
Notify listeners about changes to some state.
|
void |
notifyNodesReplaced(NodeState state)
Notify listeners about changes to some state.
|
void |
notifyStateCreated(ItemState created)
Notify listeners about changes to some state.
|
void |
notifyStateDestroyed(ItemState destroyed)
Notify listeners about changes to some state.
|
void |
notifyStateDiscarded(ItemState discarded)
Notify listeners about changes to some state.
|
void |
notifyStateModified(ItemState modified)
Notify listeners about changes to some state.
|
void |
removeListener(ItemStateListener listener)
Remove an
ItemStateListener |
public void addListener(ItemStateListener listener)
ItemStateListener
.listener
- the new listener to be informed on modificationspublic void removeListener(ItemStateListener listener)
ItemStateListener
listener
- an existing listenerpublic void notifyStateCreated(ItemState created)
created
- created state.public void notifyStateModified(ItemState modified)
modified
- modified state.public void notifyStateDestroyed(ItemState destroyed)
destroyed
- destroyed state.public void notifyStateDiscarded(ItemState discarded)
discarded
- discarded state.public void notifyNodeAdded(NodeState state, Name name, int index, NodeId id)
state
- node state that changedname
- name of node that was addedindex
- index of new nodeid
- id of new nodepublic void notifyNodesReplaced(NodeState state)
state
- node state that changedpublic void notifyNodeModified(NodeState state)
state
- node state that changedCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.