All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.hotrod.event.impl.CustomEventImpl Maven / Gradle / Ivy

The newest version!
package org.infinispan.hotrod.event.impl;

import org.infinispan.hotrod.event.ClientCacheEntryCustomEvent;
import org.infinispan.commons.util.Util;

public class CustomEventImpl extends AbstractClientEvent implements ClientCacheEntryCustomEvent {
   private final T data;
   private final boolean retried;
   private final Type type;

   public CustomEventImpl(byte[] listenerId, T data, boolean retried, Type type) {
      super(listenerId);
      this.data = data;
      this.retried = retried;
      this.type = type;
   }

   @Override
   public T getEventData() {
      return data;
   }

   @Override
   public boolean isCommandRetried() {
      return retried;
   }

   @Override
   public Type getType() {
      return type;
   }

   @Override
   public String toString() {
      return "CustomEventImpl(" + "eventData=" + Util.toStr(data) + ", eventType=" + type + ")";
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy