1 22 package org.jboss.annotation.ejb.cache.tree; 23 24 import java.lang.annotation.Annotation ; 25 26 30 public class CacheConfigImpl implements CacheConfig 31 { 32 private String name = "jboss.cache:service=EJB3SFSBClusteredCache"; 33 private int maxSize = 100000; 34 private long idleTimeoutSeconds = 300; 35 36 public CacheConfigImpl() 37 { 38 } 39 40 public String name() 41 { 42 return name; 43 } 44 45 public void setName(String name) 46 { 47 this.name = name; 48 } 49 50 public int maxSize() 51 { 52 return maxSize; 53 } 54 55 public void setMaxSize(int maxSize) 56 { 57 this.maxSize = maxSize; 58 } 59 60 public long idleTimeoutSeconds() 61 { 62 return idleTimeoutSeconds; 63 } 64 65 public void setIdleTimeoutSeconds(long idleTimeoutSeconds) 66 { 67 this.idleTimeoutSeconds = idleTimeoutSeconds; 68 } 69 70 public Class <? extends Annotation > annotationType() 71 { 72 return CacheConfig.class; 73 } 74 } 75 | Popular Tags |