Class RemovedEventImpl<K>
- java.lang.Object
-
- org.infinispan.client.hotrod.event.impl.AbstractClientEvent
-
- org.infinispan.client.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.client.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 K
getKey()
Created cache entry's key.ClientEvent.Type
getType()
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()
-
Methods inherited from class org.infinispan.client.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:ClientCacheEntryRemovedEvent
Created cache entry's key.- Specified by:
getKey
in 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:ClientCacheEntryRemovedEvent
This 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:
isCommandRetried
in interfaceClientCacheEntryRemovedEvent<K>
- Returns:
- Whether the command that caused this event was retried
-
getType
public ClientEvent.Type getType()
- Specified by:
getType
in interfaceClientEvent
-
-