public class ClusterEvent<K,V> extends Object implements CacheEntryCreatedEvent<K,V>, CacheEntryRemovedEvent<K,V>, CacheEntryModifiedEvent<K,V>, CacheEntryExpiredEvent<K,V>
fromEvent(CacheEntryEvent)
method.Modifier and Type | Class and Description |
---|---|
static class |
ClusterEvent.Externalizer |
Event.Type
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static <K,V> ClusterEvent<K,V> |
fromEvent(CacheEntryEvent<K,V> event) |
Cache<K,V> |
getCache() |
GlobalTransaction |
getGlobalTransaction() |
K |
getKey() |
Metadata |
getMetadata()
Retrieves the metadata associated with the entry.
|
V |
getOldValue()
Regardless of whether isPre() is true or is
false, this method returns the value of the entry being
deleted.
|
Event.Type |
getType() |
V |
getValue()
Retrieves the value of the entry being created.
|
int |
hashCode() |
boolean |
isCommandRetried()
This will be true if the write command that caused this had to be retried again due to a topology change.
|
boolean |
isCreated()
Indicates whether the cache entry modification event is the result of
the cache entry being created.
|
boolean |
isOriginLocal() |
boolean |
isPre() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isCurrentState
public static <K,V> ClusterEvent<K,V> fromEvent(CacheEntryEvent<K,V> event)
public V getValue()
CacheEntryCreatedEvent
getValue
in interface CacheEntryCreatedEvent<K,V>
getValue
in interface CacheEntryEvent<K,V>
getValue
in interface CacheEntryExpiredEvent<K,V>
getValue
in interface CacheEntryModifiedEvent<K,V>
getValue
in interface CacheEntryRemovedEvent<K,V>
Event.isPre()
is true, or the value being created
if Event.isPre()
is false.public Metadata getMetadata()
CacheEntryEvent
getMetadata
in interface CacheEntryEvent<K,V>
public boolean isCommandRetried()
CacheEntryCreatedEvent
isCommandRetried
in interface CacheEntryCreatedEvent<K,V>
isCommandRetried
in interface CacheEntryModifiedEvent<K,V>
isCommandRetried
in interface CacheEntryRemovedEvent<K,V>
public V getOldValue()
CacheEntryRemovedEvent
getOldValue
in interface CacheEntryRemovedEvent<K,V>
public boolean isCreated()
CacheEntryModifiedEvent
isCreated
in interface CacheEntryModifiedEvent<K,V>
public K getKey()
getKey
in interface CacheEntryEvent<K,V>
public GlobalTransaction getGlobalTransaction()
getGlobalTransaction
in interface TransactionalEvent<K,V>
public boolean isOriginLocal()
isOriginLocal
in interface TransactionalEvent<K,V>
public Event.Type getType()
public boolean isPre()
Copyright © 2021 JBoss by Red Hat. All rights reserved.