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

org.infinispan.partitionhandling.PartitionHandling Maven / Gradle / Ivy

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

/**
 * @author Ryan Emerson
 * @since 9.1
 */
public enum PartitionHandling {
   /**
    * If the partition does not have all owners for a given segment, both reads and writes are denied for all keys in that segment.
    */
   DENY_READ_WRITES,

   /**
    *  Allows reads for a given key if it exists in this partition, but only allows writes if this partition contains all owners of a segment.
    */
   ALLOW_READS,

   /**
    * Allow entries on each partition to diverge, with conflicts resolved during merge.
    */
   ALLOW_READ_WRITES {
      @Override
      public AvailabilityMode startingAvailability() {
         return AvailabilityMode.AVAILABLE;
      }
   };

   public AvailabilityMode startingAvailability() {
      return AvailabilityMode.DEGRADED_MODE;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy