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

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

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

import org.infinispan.hotrod.event.ClientCacheEntryRemovedEvent;

public class RemovedEventImpl extends AbstractClientEvent implements ClientCacheEntryRemovedEvent {
   private final K key;
   private final boolean retried;

   public RemovedEventImpl(byte[] listenerId, K key, boolean retried) {
      super(listenerId);
      this.key = key;
      this.retried = retried;
   }

   @Override
   public K getKey() {
      return key;
   }

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

   @Override
   public Type getType() {
      return Type.CLIENT_CACHE_ENTRY_REMOVED;
   }

   @Override
   public String toString() {
      return "RemovedEventImpl(" + "key=" + key + ")";
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy