Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 package com.whirlycott.cache; 2 3 import java.util.HashMap ; 4 import java.util.Map ; 5 6 21 22 27 public class CacheConfiguration { 28 29 private final Map attributes = new HashMap (); 30 31 34 private String backend; 35 36 39 private int maxSize; 40 41 44 private String name; 45 46 49 private String policy; 50 51 54 private int tunerSleepTime; 55 56 public String getAttribute(final String attribute) { 57 return (String ) attributes.get(attribute); 58 } 59 60 public String getBackend() { 61 return backend; 62 } 63 64 public int getMaxSize() { 65 return maxSize; 66 } 67 68 public String getName() { 69 return name; 70 } 71 72 public String getPolicy() { 73 return policy; 74 } 75 76 public int getTunerSleepTime() { 77 return tunerSleepTime; 78 } 79 80 public void setAttribute(final String attribute, final String value) { 81 attributes.put(attribute, value); 82 } 83 84 public void setBackend(final String backend) { 85 this.backend = backend; 86 } 87 88 public void setMaxSize(final int maxSize) { 89 this.maxSize = maxSize; 90 } 91 92 public void setName(final String name) { 93 this.name = name; 94 } 95 96 public void setPolicy(final String policy) { 97 this.policy = policy; 98 } 99 100 public void setTunerSleepTime(final int tunerSleepTime) { 101 this.tunerSleepTime = tunerSleepTime; 102 } 103 }
| Popular Tags
|