public class CreatedEventImpl<K> extends AbstractClientEvent implements ClientCacheEntryCreatedEvent<K>
ClientEvent.Type
Constructor and Description |
---|
CreatedEventImpl(byte[] listenerId,
K key,
long version,
boolean retried) |
Modifier and Type | Method and Description |
---|---|
K |
getKey()
Created cache entry's key.
|
ClientEvent.Type |
getType() |
long |
getVersion()
Provides access to the version of the created 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 CreatedEventImpl(byte[] listenerId, K key, long version, boolean retried)
public K getKey()
ClientCacheEntryCreatedEvent
getKey
in interface ClientCacheEntryCreatedEvent<K>
public long getVersion()
ClientCacheEntryCreatedEvent
RemoteCache.replaceWithVersion(Object, Object, long)
or RemoteCache.removeWithVersion(Object, long)
getVersion
in interface ClientCacheEntryCreatedEvent<K>
public boolean isCommandRetried()
ClientCacheEntryCreatedEvent
isCommandRetried
in interface ClientCacheEntryCreatedEvent<K>
public ClientEvent.Type getType()
getType
in interface ClientEvent
Copyright © 2021 JBoss by Red Hat. All rights reserved.