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

org.infinispan.configuration.cache.InvocationBatchingConfiguration Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.configuration.cache;

public class InvocationBatchingConfiguration {

   private final boolean enabled;

   InvocationBatchingConfiguration(boolean enabled) {
      this.enabled = enabled;
   }
   
   public boolean enabled() {
      return enabled;
   }

   @Override
   public String toString() {
      return "InvocationBatchingConfiguration{" +
            "enabled=" + enabled +
            '}';
   }

   @Override
   public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;

      InvocationBatchingConfiguration that = (InvocationBatchingConfiguration) o;

      if (enabled != that.enabled) return false;

      return true;
   }

   @Override
   public int hashCode() {
      return (enabled ? 1 : 0);
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy