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

Elias Ross genman at noderunner.net
Wed Feb 7 17:06:56 EST 2007


  User: genman  
  Date: 07/02/07 17:06:56

  Modified:    src/org/jboss/cache/config  Configuration.java
  Log:
  JBCACHE-969 - Move transaction classes to org.jboss.cache.transaction
  
  Revision  Changes    Path
  1.41      +37 -4     JBossCache/src/org/jboss/cache/config/Configuration.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Configuration.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/config/Configuration.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -b -r1.40 -r1.41
  --- Configuration.java	31 Jan 2007 22:51:16 -0000	1.40
  +++ Configuration.java	7 Feb 2007 22:06:56 -0000	1.41
  @@ -26,11 +26,34 @@
      private static final long serialVersionUID = 5553791890144997466L;
   
      /**
  -    * Public enum that encapsulates cache mode
  +    * Cache replication mode.
       */
      public enum CacheMode
      {
  -      LOCAL, REPL_SYNC, REPL_ASYNC, INVALIDATION_SYNC, INVALIDATION_ASYNC
  +      /**
  +       * Data is not replicated.
  +       */
  +      LOCAL,
  +      
  +      /**
  +       * Data replicated synchronously.
  +       */
  +      REPL_SYNC,
  +      
  +      /**
  +       * Data replicated asynchronously.
  +       */
  +      REPL_ASYNC,
  +      
  +      /**
  +       * Data invalidated synchronously.
  +       */
  +      INVALIDATION_SYNC, 
  +      
  +      /**
  +       * Data invalidated asynchronously.
  +       */
  +      INVALIDATION_ASYNC
      }
   
      public static CacheMode legacyModeToCacheMode(int legacyMode)
  @@ -54,11 +77,21 @@
      }
   
      /**
  -    * Public enum that encapsulates node locking scheme
  +    * Cache node locking scheme.
       */
      public enum NodeLockingScheme
      {
  -      PESSIMISTIC, OPTIMISTIC
  +      /**
  +       * Data is exclusively locked during modification.
  +       * @see http://en.wikipedia.org/wiki/Concurrency_control (pessimistic)
  +       */
  +      PESSIMISTIC,
  +      
  +      /**
  +       * Data is unlocked during modification, modifications merged at commit.
  +       * @see http://en.wikipedia.org/wiki/Optimistic_concurrency_control
  +       */      
  +      OPTIMISTIC
      }
   
      /**
  
  
  



More information about the jboss-cvs-commits mailing list