You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by dl...@apache.org on 2002/01/04 03:03:59 UTC

cvs commit: jakarta-turbine-fulcrum/src/services/java/org/apache/fulcrum/cache GlobalCacheService.java

dlr         02/01/03 18:03:59

  Modified:    src/services/java/org/apache/fulcrum/cache
                        GlobalCacheService.java
  Log:
  Added getNumberOfObjects(), requested by Paul Spencer <paulsp at
  apache.org>.
  
  Revision  Changes    Path
  1.3       +8 -3      jakarta-turbine-fulcrum/src/services/java/org/apache/fulcrum/cache/GlobalCacheService.java
  
  Index: GlobalCacheService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/src/services/java/org/apache/fulcrum/cache/GlobalCacheService.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -u -r1.2 -r1.3
  --- GlobalCacheService.java	10 Aug 2001 11:46:22 -0000	1.2
  +++ GlobalCacheService.java	4 Jan 2002 02:03:59 -0000	1.3
  @@ -61,7 +61,7 @@
    * GlobalCacheService interface.
    *
    * @author <a href="mailto:mbryson@mont.mindspring.com">Dave Bryson</a>
  - * @version $Id: GlobalCacheService.java,v 1.2 2001/08/10 11:46:22 knielsen Exp $
  + * @version $Id: GlobalCacheService.java,v 1.3 2002/01/04 02:03:59 dlr Exp $
    */
   public interface GlobalCacheService
       extends Service
  @@ -85,8 +85,7 @@
        * @param id The String id for the object.
        * @param o The object to add to the cache.
        */
  -    public void addObject(String id,
  -                          CachedObject o);
  +    public void addObject(String id, CachedObject o);
   
       /**
        * Removes an object from the cache.
  @@ -101,4 +100,10 @@
        */
       public int getCacheSize()
           throws IOException;
  +
  +    /**
  +     * Returns the number of objects in the cache.
  +     * @return int The current number of objects in the cache.
  +     */
  +    public int getNumberOfObjects();
   }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>