Class CustomEventImpl<T>

java.lang.Object
org.infinispan.client.hotrod.event.impl.AbstractClientEvent
org.infinispan.client.hotrod.event.impl.CustomEventImpl<T>
All Implemented Interfaces:
ClientCacheEntryCustomEvent<T>, ClientEvent

public class CustomEventImpl<T> extends AbstractClientEvent implements ClientCacheEntryCustomEvent<T>
  • Constructor Details

    • CustomEventImpl

      public CustomEventImpl(byte[] listenerId, T data, boolean retried, ClientEvent.Type type)
  • Method Details

    • getEventData

      public T getEventData()
      Description copied from interface: ClientCacheEntryCustomEvent
      Customized event data. It can be any type as long as it can be converted to binary format for shipping between the server and client.
      Specified by:
      getEventData in interface ClientCacheEntryCustomEvent<T>
      Returns:
      an instance of the customised event data.
    • isCommandRetried

      public boolean isCommandRetried()
      Description copied from interface: ClientCacheEntryCustomEvent
      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 interface ClientCacheEntryCustomEvent<T>
      Returns:
      Whether the command that caused this event was retried
    • getType

      public ClientEvent.Type getType()
      Specified by:
      getType in interface ClientEvent
    • toString

      public String toString()
      Overrides:
      toString in class Object