Class CustomEventImpl<T>

    • Constructor Detail

      • CustomEventImpl

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

      • 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