@NotThreadSafe public class EventImpl<K,V> extends Object implements CacheEntryActivatedEvent, CacheEntryCreatedEvent, CacheEntriesEvictedEvent, CacheEntryLoadedEvent, CacheEntryModifiedEvent, CacheEntryPassivatedEvent, CacheEntryRemovedEvent, CacheEntryVisitedEvent, TransactionCompletedEvent, TransactionRegisteredEvent, CacheEntryInvalidatedEvent, DataRehashedEvent, TopologyChangedEvent, CacheEntryEvictedEvent
| Constructor and Description |
|---|
EventImpl() |
public static <K,V> EventImpl<K,V> createEvent(Cache<K,V> cache, Event.Type type)
public Event.Type getType()
public boolean isPre()
public K getKey()
getKey in interface CacheEntryEventpublic GlobalTransaction getGlobalTransaction()
getGlobalTransaction in interface TransactionalEventpublic boolean isOriginLocal()
isOriginLocal in interface TransactionalEventpublic boolean isTransactionSuccessful()
isTransactionSuccessful in interface TransactionCompletedEventpublic void setPre(boolean pre)
public void setKey(K key)
public void setTransactionId(GlobalTransaction transaction)
public void setOriginLocal(boolean originLocal)
public void setTransactionSuccessful(boolean transactionSuccessful)
public void setConsistentHashAtStart(ConsistentHash consistentHashAtStart)
public void setConsistentHashAtEnd(ConsistentHash consistentHashAtEnd)
public void setNewTopologyId(int newTopologyId)
public V getValue()
CacheEntryActivatedEventgetValue in interface CacheEntryActivatedEventgetValue in interface CacheEntryEvictedEventgetValue in interface CacheEntryInvalidatedEventgetValue in interface CacheEntryLoadedEventgetValue in interface CacheEntryModifiedEventgetValue in interface CacheEntryPassivatedEventgetValue in interface CacheEntryRemovedEventgetValue in interface CacheEntryVisitedEventpublic void setValue(V value)
public Collection<Address> getMembersAtStart()
getMembersAtStart in interface DataRehashedEventpublic Collection<Address> getMembersAtEnd()
getMembersAtEnd in interface DataRehashedEventpublic int getNewTopologyId()
getNewTopologyId in interface DataRehashedEventgetNewTopologyId in interface TopologyChangedEventpublic ConsistentHash getConsistentHashAtStart()
getConsistentHashAtStart in interface DataRehashedEventgetConsistentHashAtStart in interface TopologyChangedEventpublic ConsistentHash getConsistentHashAtEnd()
getConsistentHashAtEnd in interface DataRehashedEventgetConsistentHashAtEnd in interface TopologyChangedEventpublic Map<K,V> getEntries()
CacheEntriesEvictedEventgetEntries in interface CacheEntriesEvictedEventCopyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.