public class ModifiedEventImpl<K> extends AbstractClientEvent implements ClientCacheEntryModifiedEvent<K>
ClientEvent.Type
Constructor and Description |
---|
ModifiedEventImpl(byte[] listenerId,
K key,
long version,
boolean retried) |
Modifier and Type | Method and Description |
---|---|
K |
getKey()
Modifiedcache entry's key.
|
ClientEvent.Type |
getType() |
long |
getVersion()
Provides access to the version of the modified cache entry.
|
boolean |
isCommandRetried()
This will be true if the write command that caused this had to be retried
again due to a topology change.
|
String |
toString() |
getListenerId
public ModifiedEventImpl(byte[] listenerId, K key, long version, boolean retried)
public K getKey()
ClientCacheEntryModifiedEvent
getKey
in interface ClientCacheEntryModifiedEvent<K>
public long getVersion()
ClientCacheEntryModifiedEvent
RemoteCache.replaceWithVersion(Object, Object, long)
or RemoteCache.removeWithVersion(Object, long)
getVersion
in interface ClientCacheEntryModifiedEvent<K>
public boolean isCommandRetried()
ClientCacheEntryModifiedEvent
isCommandRetried
in interface ClientCacheEntryModifiedEvent<K>
public ClientEvent.Type getType()
getType
in interface ClientEvent
Copyright © 2021 JBoss by Red Hat. All rights reserved.