User: slaboure
  Date: 01/12/31 07:15:11

  Modified:    src/main/org/jboss/ha/framework/interfaces
                        DistributedState.java
  Log:
  New set/remove methods to mimic optional parameter to indicate if the cluster call 
must be made (a-)synchronous.
  
  Revision  Changes    Path
  1.6       +16 -2     
jbossmx/src/main/org/jboss/ha/framework/interfaces/DistributedState.java
  
  Index: DistributedState.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbossmx/src/main/org/jboss/ha/framework/interfaces/DistributedState.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DistributedState.java     2001/12/29 16:09:41     1.5
  +++ DistributedState.java     2001/12/31 15:15:11     1.6
  @@ -27,9 +27,13 @@
    * modified/removed/added in a particular category.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Sacha Labourey</a>.
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.6 $
    *
    * <p><b>Revisions:</b><br>
  + * <p><b>2001/12/31: Sacha Labourey</b>
  + * <ol>
  + *   <li>Allow caller to select if cluster call is synchronous or asynchronous</li>
  + * </ol>
    * @see HAPartition
    */
   public interface DistributedState
  @@ -81,6 +85,11 @@
       * @throws Exception If a network communication occurs
       */
      public void set (String category, String key, Serializable value) throws 
Exception;
  +   /**
  +    * Same as set(String, String) but caller can choose if the call is made
  +    * synchronously or asynchronously. By default, calls are asynchronous.
  +    */
  +   public void set (String category, String key, Serializable value, boolean 
asynchronousCall) throws Exception;
      
      /**
       * Read in a value associated to a key in the given category. Read is performed 
locally.
  @@ -88,7 +97,7 @@
       * @param key The key of the value to read
       * @return The value of the key in the given category
       */
  -   public Serializable get (String category, String key);
  +   public Serializable get (String category, String key);   
      
      /**
       * Return a list of all categories. Call managed locally: no network access.
  @@ -117,4 +126,9 @@
       * @throws Exception if a network exception occurs while removing the entry.
       */
      public Serializable remove (String category, String key) throws Exception;
  +   /**
  +    * Same as remove(String, String) but caller can choose if the call is made
  +    * synchronously or asynchronously. By default, calls are asynchronous.
  +    */
  +   public Serializable remove (String category, String key, boolean 
asynchronousCall) throws Exception;
   }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to