Class 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>
      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>
      Whether the command that caused this event was retried
    • getType

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

      public String toString()
      toString in class Object