You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by as...@apache.org on 2002/02/18 06:54:27 UTC

cvs commit: jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/engine/behavior IElementAttributes.java

asmuts      02/02/17 21:54:27

  Added:       src/java/org/apache/stratum/jcs/engine/behavior
                        IElementAttributes.java
  Log:
  should use this instead of the old attributes class.  this is much cleaner.
  
  Revision  Changes    Path
  1.1                  jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/engine/behavior/IElementAttributes.java
  
  Index: IElementAttributes.java
  ===================================================================
  package org.apache.stratum.jcs.engine.behavior;
  
  import org.apache.stratum.jcs.access.exception.InvalidArgumentException;
  
  /**
   * Inteface for cache element attributes classes.
   *
   * @author asmuts
   * @created January 15, 2002
   */
  public interface IElementAttributes
  {
  
      /**
       * Sets the version attribute of the IAttributes object
       *
       * @param version The new version value
       */
      public void setVersion( long version );
  
  
      /**
       * Sets the maxLife attribute of the IAttributes object
       *
       * @param ttl The new timeToLive value
       * @param mls The new {3} value
       */
      public void setMaxLifeSeconds( long mls );
  
      /**
       * Sets the maxLife attribute of the IAttributes object
       *
       * @param ttl The new timeToLive value
       * @return The {3} value
       */
      public long getMaxLifeSeconds();
  
  
      /**
       * Sets the idleTime attribute of the IAttributes object
       *
       * @param idle The new idleTime value
       */
      public void setIdleTime( long idle );
  
  
      //public void setListener( int event, CacheEventListener listerner) {}
  
      /**
       * Size in bytes.
       *
       * @param size The new size value
       */
      public void setSize( int size );
  
  
      /**
       * Gets the size attribute of the IAttributes object
       *
       * @return The size value
       */
      public int getSize();
  
  
      /**
       * Gets the createTime attribute of the IAttributes object
       *
       * @return The createTime value
       */
      public long getCreateTime();
  
  
      /**
       * Gets the LastAccess attribute of the IAttributes object
       *
       * @return The LastAccess value
       */
      public long getLastAccessTime();
  
      /**
       * Sets the LastAccessTime as now of the IElementAttributes object
       */
      public void setLastAccessTimeNow();
  
  
      /**
       * Gets the version attribute of the IAttributes object
       *
       * @return The version value
       */
      public long getVersion();
  
  
      /**
       * Gets the idleTime attribute of the IAttributes object
       *
       * @return The idleTime value
       */
      public long getIdleTime();
  
  
      /**
       * Gets the time left to live of the IAttributes object
       *
       * @return The t value
       */
      public long getTimeToLiveSeconds();
  
  
  }
  
  
  

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