james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/services MailRepository.java
Date Mon, 06 Aug 2001 04:14:51 GMT
serge       01/08/05 21:14:51

  Modified:    src/java/org/apache/james/services MailRepository.java
  Log:
  Added lock and unlock methods, and fixed some types/code formatting slightly.
  
  Revision  Changes    Path
  1.2       +15 -5     jakarta-james/src/java/org/apache/james/services/MailRepository.java
  
  Index: MailRepository.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/services/MailRepository.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MailRepository.java	2001/05/11 09:39:34	1.1
  +++ MailRepository.java	2001/08/06 04:14:51	1.2
  @@ -29,7 +29,7 @@
        * Stores a message in this repository. Shouldn't this return the key
        * under which it is stored?
        */
  -    void store( MailImpl mc );
  +    void store(MailImpl mc);
   
       /**
        * List string keys of messages in repository.
  @@ -41,15 +41,25 @@
        * Retrieves a message given a key. At the moment, keys can be obtained
        * from list() in superinterface Store.Repository
        */
  -    MailImpl retrieve( String key );
  +    MailImpl retrieve(String key);
   
       /**
        * Removes a specified message
        */
  -    void remove( MailImpl mail );
  +    void remove(MailImpl mail);
   
       /**
  -     * Removes a message identifed by key.
  +     * Removes a message identified by key.
        */
  -    void remove( String key );
  +    void remove(String key);
  +
  +    /**
  +     * Obtains a lock on a message identified by key
  +     */
  +    boolean lock(String key);
  +
  +    /**
  +     * Releases a lock on a message identified the key
  +     */
  +    boolean unlock(String key);
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Mime
View raw message