1 23 24 37 38 package com.sun.enterprise.deployment.runtime; 39 40 import com.sun.enterprise.deployment.Descriptor; 41 import com.sun.enterprise.deployment.DescriptorConstants; 42 43 47 public class BeanCacheDescriptor extends Descriptor implements DescriptorConstants{ 48 49 private Boolean isCacheOverflowAllowed; 50 private String victimSelectionPolicy; 51 52 private int maxCacheSize = MAX_CACHE_SIZE_DEFAULT; 54 private int resizeQuantity = RESIZE_QUANTITY_DEFAULT; 55 private int cacheIdleTimeoutInSeconds = CACHE_IDLE_TIMEOUT_DEFAULT; 56 private int removalTimeoutInSeconds = REMOVAL_TIMEOUT_DEFAULT; 57 58 59 public BeanCacheDescriptor() { 60 } 61 62 66 public int getCacheIdleTimeoutInSeconds() { 67 return cacheIdleTimeoutInSeconds; 68 } 69 70 74 75 public void setCacheIdleTimeoutInSeconds(int cacheIdleTimeoutInSeconds) { 76 this.cacheIdleTimeoutInSeconds = cacheIdleTimeoutInSeconds; 77 } 78 79 83 public Boolean isIsCacheOverflowAllowed() { 84 return isCacheOverflowAllowed; 85 } 86 87 91 public void setIsCacheOverflowAllowed(boolean isCacheOverflowAllowed) { 92 this.isCacheOverflowAllowed = new Boolean (isCacheOverflowAllowed); 93 } 94 95 99 public void setIsCacheOverflowAllowed(Boolean isCacheOverflowAllowed) { 100 this.isCacheOverflowAllowed = isCacheOverflowAllowed; 101 } 102 103 107 public int getMaxCacheSize() { 108 return maxCacheSize; 109 } 110 111 115 public void setMaxCacheSize(int maxCacheSize) { 116 this.maxCacheSize = maxCacheSize; 117 } 118 119 123 public int getResizeQuantity() { 124 return resizeQuantity; 125 } 126 127 131 public void setResizeQuantity(int resizeQty) { 132 this.resizeQuantity = resizeQty; 133 } 134 135 139 public int getRemovalTimeoutInSeconds() { 140 return removalTimeoutInSeconds; 141 } 142 143 147 public void setRemovalTimeoutInSeconds(int removalTimeoutInSeconds) { 148 this.removalTimeoutInSeconds = removalTimeoutInSeconds; 149 } 150 151 155 public java.lang.String getVictimSelectionPolicy() { 156 return victimSelectionPolicy; 157 } 158 159 163 public void setVictimSelectionPolicy(java.lang.String victimSelectionPolicy) { 164 this.victimSelectionPolicy = victimSelectionPolicy; 165 } 166 } 167 | Popular Tags |