org.infinispan.hotrod.event.impl.ExpiredEventImpl Maven / Gradle / Ivy
The newest version!
package org.infinispan.hotrod.event.impl;
import org.infinispan.hotrod.event.ClientCacheEntryExpiredEvent;
public class ExpiredEventImpl extends AbstractClientEvent implements ClientCacheEntryExpiredEvent {
private final K key;
public ExpiredEventImpl(byte[] listenerId, K key) {
super(listenerId);
this.key = key;
}
@Override
public K getKey() {
return key;
}
@Override
public Type getType() {
return Type.CLIENT_CACHE_ENTRY_EXPIRED;
}
@Override
public String toString() {
return "ExpiredEventImpl(" + "key=" + key + ")";
}
}