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

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

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

import org.infinispan.hotrod.event.ClientCacheEntryCreatedEvent;

public class CreatedEventImpl extends AbstractClientEvent implements ClientCacheEntryCreatedEvent {
   final K key;
   final long version;
   final boolean retried;

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

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

   @Override
   public long getVersion() {
      return version;
   }

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

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

   @Override
   public String toString() {
      return "CreatedEventImpl(" + "key=" + key
            + ", dataVersion=" + version + ")";
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy