asmuts      02/01/14 22:38:54

  Added:       src/java/org/apache/stratum/jcs/engine/memory/behavior
                        IMemoryCache.java
  Log:
  inteface defining the methods necessary for a memory management plugin
  
  Revision  Changes    Path
  1.1                  
jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/engine/memory/behavior/IMemoryCache.java
  
  Index: IMemoryCache.java
  ===================================================================
  package org.apache.stratum.jcs.engine.memory.behavior;
  
  import java.io.*;
  import java.util.*;
  
  import org.apache.stratum.jcs.engine.*;
  import org.apache.stratum.jcs.engine.behavior.*;
  import org.apache.stratum.jcs.engine.memory.*;
  import org.apache.stratum.jcs.engine.control.Cache;
  import org.apache.stratum.jcs.access.exception.*;
  
  /**
   * For the framework.  Insures methods a MemoryCache needs to access.
   */
  public interface IMemoryCache extends ICacheType {
  
    // for initialization
    public void initialize( String cacheName, ICompositeCacheAttributes cattr, 
ICacheHub hub );
  
    public void makeFirst( MemoryElementDescriptor me );
  
    //public void moveToMemory( ICacheElement ce );
  
    public int getSize( );
  
  
    // get an Iterator for all the elements
    public Iterator getIterator();
  
  
    /** Removes an item from the cache. */
    public boolean remove(Serializable key) throws IOException;
  
    /** Removes all cached items from the cache. */
    public void removeAll() throws IOException;
  
    public Serializable get(Serializable key) throws IOException;
    public Serializable get(Serializable key, boolean container ) throws IOException;
  
    /**
      * Puts an item to the cache.
      */
    public void update(ICacheElement ce) throws IOException;
  
  
  }
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to