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

org.infinispan.transaction.WriteSkewException Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.transaction;

import org.infinispan.commons.CacheException;

/**
 * Thrown when a write skew is detected
 *
 * @author Manik Surtani
 * @since 5.1
 */
public class WriteSkewException extends CacheException {

   private final Object key;

   public WriteSkewException() {
      this.key = null;
   }

   public WriteSkewException(Throwable cause, Object key) {
      super(cause);
      this.key = key;
   }

   public WriteSkewException(String msg, Object key) {
      super(msg);
      this.key = key;
   }

   public WriteSkewException(String msg, Throwable cause, Object key) {
      super(msg, cause);
      this.key = key;
   }

   public final Object getKey() {
      return key;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy