Interface ViewChangedEvent
-
- All Superinterfaces:
Event
- All Known Subinterfaces:
MergeEvent
public interface ViewChangedEvent extends Event
This event is passed in to any method annotated withViewChanged. It represents a JGroups view change event.- Since:
- 4.0
- Author:
- Manik Surtani
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.notifications.cachemanagerlistener.event.Event
Event.Type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.infinispan.remoting.transport.AddressgetLocalAddress()List<org.infinispan.remoting.transport.Address>getNewMembers()Gets the current list of members.List<org.infinispan.remoting.transport.Address>getOldMembers()Gets the previous list of members.intgetViewId()Get JGroups view id.booleanisMergeView()-
Methods inherited from interface org.infinispan.notifications.cachemanagerlistener.event.Event
getCacheManager, getType
-
-
-
-
Method Detail
-
getNewMembers
List<org.infinispan.remoting.transport.Address> getNewMembers()
Gets the current list of members.- Returns:
- the new view associated with this view change. List cannot be null.
-
getOldMembers
List<org.infinispan.remoting.transport.Address> getOldMembers()
Gets the previous list of members.- Returns:
- the old view associated with this view change. List cannot be null.
-
getLocalAddress
org.infinispan.remoting.transport.Address getLocalAddress()
-
getViewId
int getViewId()
Get JGroups view id.- Returns:
-
isMergeView
boolean isMergeView()
-
-