FileDocCategorySizeDatePackage
CacheConfigImpl.javaAPI DocJBoss 4.2.12535Fri Jul 13 20:54:00 BST 2007org.jboss.annotation.ejb.cache.simple

CacheConfigImpl

public class CacheConfigImpl extends Object implements CacheConfig
version
$Revision: 61289 $
author
William DeCoste

Fields Summary
private int
maxSize
private long
idleTimeoutSeconds
private long
removalTimeoutSeconds
Constructors Summary
public CacheConfigImpl()


    
   
   
Methods Summary
public java.lang.ClassannotationType()

      return CacheConfig.class;
   
public longidleTimeoutSeconds()

      return idleTimeoutSeconds;
   
public intmaxSize()

      return maxSize;
   
public voidmerge(CacheConfig annotation)

   
      if (maxSize == 100000)
         maxSize = annotation.maxSize();
      
      if (idleTimeoutSeconds == 300)
         idleTimeoutSeconds = annotation.idleTimeoutSeconds();
      
      if (removalTimeoutSeconds == 0)
         removalTimeoutSeconds = annotation.removalTimeoutSeconds();
      
   
public longremovalTimeoutSeconds()

      return removalTimeoutSeconds;
   
public voidsetIdleTimeoutSeconds(long idleTimeoutSeconds)

      this.idleTimeoutSeconds = idleTimeoutSeconds;
   
public voidsetMaxSize(int maxSize)

      this.maxSize = maxSize;
   
public voidsetRemovalTimeoutSeconds(long removalTimeoutSeconds)

      this.removalTimeoutSeconds = removalTimeoutSeconds;