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 Address
getLocalAddress()
List<Address>
getNewMembers()
Gets the current list of members.List<Address>
getOldMembers()
Gets the previous list of members.int
getViewId()
Get JGroups view id.boolean
isMergeView()
-
Methods inherited from interface org.infinispan.notifications.cachemanagerlistener.event.Event
getCacheManager, getType
-
-
-
-
Method Detail
-
getNewMembers
List<Address> getNewMembers()
Gets the current list of members.- Returns:
- the new view associated with this view change. List cannot be null.
-
getOldMembers
List<Address> getOldMembers()
Gets the previous list of members.- Returns:
- the old view associated with this view change. List cannot be null.
-
getLocalAddress
Address getLocalAddress()
-
getViewId
int getViewId()
Get JGroups view id.- Returns:
-
isMergeView
boolean isMergeView()
-
-