org.jboss.ha.framework.interfaces
Interface DistributedReplicantManager.ReplicantListener

All Known Implementing Classes:
HAServiceImpl, HASingletonImpl, HATarget
Enclosing interface:
DistributedReplicantManager

public static interface DistributedReplicantManager.ReplicantListener

When a particular key in the DistributedReplicantManager table gets modified, all listeners will be notified of replicant changes for that key.


Method Summary
 void replicantsChanged(String key, List newReplicants, int newReplicantsViewId, boolean merge)
          Callback called when the content/list of replicant for a given replicant key has changed
 

Method Detail

replicantsChanged

void replicantsChanged(String key,
                       List newReplicants,
                       int newReplicantsViewId,
                       boolean merge)
Callback called when the content/list of replicant for a given replicant key has changed

Parameters:
key - The name of the key of the replicant that has changed
newReplicants - The list of new replicants for the give replicant key. This list will be in a consistent order on all cluster nodes on which the current viewId is in effect
newReplicantsViewId - The new replicant view id corresponding to this change
merge - Is the change due to a merge (i.e. the healing of a cluster split)?


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.