Package org.infinispan.hotrod.event.impl
Class RemovedEventImpl<K>
- java.lang.Object
-
- org.infinispan.hotrod.event.impl.AbstractClientEvent
-
- org.infinispan.hotrod.event.impl.RemovedEventImpl<K>
-
- All Implemented Interfaces:
ClientCacheEntryRemovedEvent<K>,ClientEvent
public class RemovedEventImpl<K> extends AbstractClientEvent implements ClientCacheEntryRemovedEvent<K>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.hotrod.event.ClientEvent
ClientEvent.Type
-
-
Constructor Summary
Constructors Constructor Description RemovedEventImpl(byte[] listenerId, K key, boolean retried)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KgetKey()Created cache entry's key.ClientEvent.TypegetType()booleanisCommandRetried()This will be true if the write command that caused this had to be retried again due to a topology change.StringtoString()-
Methods inherited from class org.infinispan.hotrod.event.impl.AbstractClientEvent
getListenerId
-
-
-
-
Constructor Detail
-
RemovedEventImpl
public RemovedEventImpl(byte[] listenerId, K key, boolean retried)
-
-
Method Detail
-
getKey
public K getKey()
Description copied from interface:ClientCacheEntryRemovedEventCreated cache entry's key.- Specified by:
getKeyin interfaceClientCacheEntryRemovedEvent<K>- Returns:
- an instance of the key with which a cache entry has been created in remote server.
-
isCommandRetried
public boolean isCommandRetried()
Description copied from interface:ClientCacheEntryRemovedEventThis will be true if the write command that caused this had to be retried again due to a topology change. This could be a sign that this event has been duplicated or another event was dropped and replaced (eg: ModifiedEvent replaced CreateEvent)- Specified by:
isCommandRetriedin interfaceClientCacheEntryRemovedEvent<K>- Returns:
- Whether the command that caused this event was retried
-
getType
public ClientEvent.Type getType()
- Specified by:
getTypein interfaceClientEvent
-
-