org.axonframework.commandhandling.distributed.jgroups
Interface HashChangeListener


public interface HashChangeListener

Receive updates from the JGroupsConnector when the consistent hash changes. This is useful e.g. to clear domain caches that may contain stale versions of aggregates.

Since:
2.5
Author:
Patrick Haas

Method Summary
 void hashChanged(ConsistentHash newHash)
          Invoked when the memberships of a consistent hash have changed.
 

Method Detail

hashChanged

void hashChanged(ConsistentHash newHash)
Invoked when the memberships of a consistent hash have changed. The given newHash provides access to the membership details, and can be used to define routing of messages.

Parameters:
newHash - The new hash
See Also:
ConsistentHash.getMember(String, String), ConsistentHash.getMembers()


Copyright © 2010-2016. All Rights Reserved.