org.jboss.ha.framework.interfaces
Interface DistributedState.DSListener

Enclosing interface:
DistributedState (src)

Deprecated. use the DSListenerEx instead

public static interface DistributedState.DSListener

When a particular key in a category of the DistributedState service gets modified, all listeners will be notified of DS changes for that category.


Method Summary
 void keyHasBeenRemoved(java.lang.String category, java.lang.String key, java.io.Serializable previousContent, boolean locallyModified)
          Deprecated. Called whenever a key has been removed from a category the called object had subscribed in.
 void valueHasChanged(java.lang.String category, java.lang.String key, java.io.Serializable value, boolean locallyModified)
          Deprecated. Called whenever a key has been added or modified in the category the called object has subscribed in.
 

Method Detail

valueHasChanged

public void valueHasChanged(java.lang.String category,
                            java.lang.String key,
                            java.io.Serializable value,
                            boolean locallyModified)
Deprecated. 
Called whenever a key has been added or modified in the category the called object has subscribed in.

Parameters:
category - The category of the modified/added entry
key - The key that has been added or its value modified
value - The new value of the key

keyHasBeenRemoved

public void keyHasBeenRemoved(java.lang.String category,
                              java.lang.String key,
                              java.io.Serializable previousContent,
                              boolean locallyModified)
Deprecated. 
Called whenever a key has been removed from a category the called object had subscribed in.

Parameters:
category - The category under which a key has been removed
key - The key that has been removed
previousContent - The previous content of the key that has been removed