[jboss-cvs] JBossCache/src/org/jboss/cache/config ...

Manik Surtani manik at jboss.org
Mon Jul 16 22:43:46 EDT 2007


  User: msurtani
  Date: 07/07/16 22:43:46

  Modified:    src/org/jboss/cache/config  Option.java
  Log:
  JBCACHE-1077
  
  Revision  Changes    Path
  1.15      +28 -5     JBossCache/src/org/jboss/cache/config/Option.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Option.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/config/Option.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -b -r1.14 -r1.15
  --- Option.java	24 May 2007 13:11:10 -0000	1.14
  +++ Option.java	17 Jul 2007 02:43:46 -0000	1.15
  @@ -21,7 +21,8 @@
      private DataVersion dataVersion;
      private boolean suppressLocking;
      private boolean forceDataGravitation;
  -   private boolean bypassInterceptorChain;
  +   private boolean skipDataGravitation;
  +
      private boolean forceWriteLock;
   
      /**
  @@ -120,6 +121,28 @@
         this.forceDataGravitation = enableDataGravitation;
      }
   
  +   /**
  +    * @return true if skipDataGravitation is set to true.
  +    * @since 2.0.0
  +    */
  +   public boolean isSkipDataGravitation()
  +   {
  +      return skipDataGravitation;
  +   }
  +
  +   /**
  +    * Suppresses data gravitation when buddy replication is used.  If true, overrides {@link #setForceDataGravitation(boolean)}
  +    * being set to true.  Typically used to suppress gravitation calls when {@link org.jboss.cache.config.BuddyReplicationConfig#setAutoDataGravitation(boolean)}
  +    * is set to true.
  +    *
  +    * @param skipDataGravitation
  +    * @since 2.0.0
  +    */
  +   public void setSkipDataGravitation(boolean skipDataGravitation)
  +   {
  +      this.skipDataGravitation = skipDataGravitation;
  +   }
  +
   
      public String toString()
      {
  @@ -129,7 +152,7 @@
                 ", dataVersion=" + dataVersion +
                 ", suppressLocking=" + suppressLocking +
                 ", forceDataGravitation=" + forceDataGravitation +
  -              ", bypassInterceptorChain=" + bypassInterceptorChain +
  +              ", skipDataGravitation=" + skipDataGravitation +
                 '}';
      }
   
  @@ -146,7 +169,7 @@
   
         final Option option = (Option) o;
   
  -      if (bypassInterceptorChain != option.bypassInterceptorChain) return false;
  +      if (skipDataGravitation != option.skipDataGravitation) return false;
         if (cacheModeLocal != option.cacheModeLocal) return false;
         if (failSilently != option.failSilently) return false;
         if (forceDataGravitation != option.forceDataGravitation) return false;
  @@ -164,7 +187,7 @@
         result = 29 * result + (dataVersion != null ? dataVersion.hashCode() : 0);
         result = 29 * result + (suppressLocking ? 1 : 0);
         result = 29 * result + (forceDataGravitation ? 1 : 0);
  -      result = 29 * result + (bypassInterceptorChain ? 1 : 0);
  +      result = 29 * result + (skipDataGravitation ? 1 : 0);
         result = 29 * result + (forceWriteLock ? 0 : 1);
         return result;
      }
  @@ -174,7 +197,7 @@
       */
      public void reset()
      {
  -      this.bypassInterceptorChain = false;
  +      this.skipDataGravitation = false;
         this.cacheModeLocal = false;
         this.failSilently = false;
         this.forceDataGravitation = false;
  
  
  



More information about the jboss-cvs-commits mailing list