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

CacheConfigImpl

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

Fields Summary
private String
name
private int
maxSize
private long
idleTimeoutSeconds
private long
removalTimeoutSeconds
private boolean
replicationIsPassivation
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();
      
      if (replicationIsPassivation == true)
         replicationIsPassivation = annotation.replicationIsPassivation();
      
   
public java.lang.Stringname()

      return name;
   
public longremovalTimeoutSeconds()

      return removalTimeoutSeconds;
   
public booleanreplicationIsPassivation()

      return replicationIsPassivation;
   
public voidsetIdleTimeoutSeconds(long idleTimeoutSeconds)

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

      this.maxSize = maxSize;
   
public voidsetName(java.lang.String name)

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

      this.removalTimeoutSeconds = removalTimeoutSeconds;
   
public voidsetReplicationIsPassivation(boolean replicationIsPassivation)

      this.replicationIsPassivation = replicationIsPassivation;