Class EventImpl
java.lang.Object
org.infinispan.notifications.cachemanagerlistener.event.impl.EventImpl
- All Implemented Interfaces:
CacheStartedEvent,CacheStoppedEvent,ConfigurationChangedEvent,Event,MergeEvent,ViewChangedEvent
public class EventImpl
extends Object
implements CacheStartedEvent, CacheStoppedEvent, ViewChangedEvent, MergeEvent, ConfigurationChangedEvent
Implementation of cache manager events
- Since:
- 4.0
- Author:
- Manik Surtani
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.notifications.cachemanagerlistener.event.ConfigurationChangedEvent
ConfigurationChangedEvent.EventTypeNested classes/interfaces inherited from interface org.infinispan.notifications.cachemanagerlistener.event.Event
Event.Type -
Constructor Summary
ConstructorsConstructorDescriptionEventImpl(String cacheName, EmbeddedCacheManager cacheManager, Event.Type type, List<Address> newMemberList, List<Address> oldMemberList, Address localAddress, int viewId) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the current list of members.Gets the previous list of members.getType()intGet JGroups view id.inthashCode()booleanvoidsetCacheManager(EmbeddedCacheManager cacheManager) voidsetCacheName(String cacheName) voidvoidvoidvoidsetLocalAddress(Address localAddress) voidsetMergeView(boolean b) voidsetNewMembers(List<Address> newMembers) voidsetOldMembers(List<Address> oldMembers) voidsetSubgroupsMerged(List<List<Address>> subgroupsMerged) voidsetType(Event.Type type) voidsetViewId(int viewId) toString()
-
Constructor Details
-
EventImpl
public EventImpl() -
EventImpl
public EventImpl(String cacheName, EmbeddedCacheManager cacheManager, Event.Type type, List<Address> newMemberList, List<Address> oldMemberList, Address localAddress, int viewId)
-
-
Method Details
-
getCacheName
- Specified by:
getCacheNamein interfaceCacheStartedEvent- Specified by:
getCacheNamein interfaceCacheStoppedEvent
-
setCacheName
-
getCacheManager
- Specified by:
getCacheManagerin interfaceEvent
-
setCacheManager
-
getType
-
setType
-
getNewMembers
Description copied from interface:ViewChangedEventGets the current list of members.- Specified by:
getNewMembersin interfaceViewChangedEvent- Returns:
- the new view associated with this view change. List cannot be null.
-
setNewMembers
-
setOldMembers
-
getOldMembers
Description copied from interface:ViewChangedEventGets the previous list of members.- Specified by:
getOldMembersin interfaceViewChangedEvent- Returns:
- the old view associated with this view change. List cannot be null.
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceViewChangedEvent
-
getViewId
public int getViewId()Description copied from interface:ViewChangedEventGet JGroups view id.- Specified by:
getViewIdin interfaceViewChangedEvent- Returns:
-
setViewId
public void setViewId(int viewId) -
setLocalAddress
-
equals
-
hashCode
public int hashCode() -
toString
-
setSubgroupsMerged
-
getSubgroupsMerged
- Specified by:
getSubgroupsMergedin interfaceMergeEvent
-
isMergeView
public boolean isMergeView()- Specified by:
isMergeViewin interfaceViewChangedEvent
-
setMergeView
public void setMergeView(boolean b) -
setConfigurationEventType
-
setConfigurationEntityType
-
setConfigurationEntityName
-
getConfigurationEventType
- Specified by:
getConfigurationEventTypein interfaceConfigurationChangedEvent
-
getConfigurationEntityType
- Specified by:
getConfigurationEntityTypein interfaceConfigurationChangedEvent
-
getConfigurationEntityName
- Specified by:
getConfigurationEntityNamein interfaceConfigurationChangedEvent
-