dlr         02/01/03 18:01:47

  Modified:    src/java/org/apache/turbine/services/cache
                        GlobalCacheService.java
  Log:
  Added getNumberOfObjects(), requested by Paul Spencer <paulsp at
  apache.org>.
  
  Revision  Changes    Path
  1.2       +8 -3      
jakarta-turbine-2/src/java/org/apache/turbine/services/cache/GlobalCacheService.java
  
  Index: GlobalCacheService.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/cache/GlobalCacheService.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -u -r1.1 -r1.2
  --- GlobalCacheService.java   16 Aug 2001 05:08:50 -0000      1.1
  +++ GlobalCacheService.java   4 Jan 2002 02:01:47 -0000       1.2
  @@ -61,7 +61,7 @@
    * GlobalCacheService interface.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Dave Bryson</a>
  - * @version $Id: GlobalCacheService.java,v 1.1 2001/08/16 05:08:50 jvanzyl Exp $
  + * @version $Id: GlobalCacheService.java,v 1.2 2002/01/04 02:01:47 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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to