org.infinispan.hotrod.event.impl.CustomEventImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-hotrod-jakarta Show documentation
Show all versions of infinispan-hotrod-jakarta Show documentation
Infinispan Hot Rod Client Jakarta EE
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 + ")";
}
}