1 46 51 package org.mr.core.util.byteable; 52 53 59 public class ByteBufferPoolParameters { 60 62 private int numInSmallPool = 50; 63 private int numInMediumPool = 20; 64 private int numInLargePool = 10; 65 66 private int smallBufferSize = 2048; 67 private int mediumBufferSize = 6120; 68 private int largeBufferSize = 10240; 69 72 public int getLargeBufferSize() { 73 return largeBufferSize; 74 } 75 78 public void setLargeBufferSize(int largeBufferSize) { 79 this.largeBufferSize = largeBufferSize; 80 } 81 84 public int getMediumBufferSize() { 85 return mediumBufferSize; 86 } 87 90 public void setMediumBufferSize(int mediumBufferSize) { 91 this.mediumBufferSize = mediumBufferSize; 92 } 93 96 public int getNumInLargePool() { 97 return numInLargePool; 98 } 99 102 public void setNumInLargePool(int numInLargePool) { 103 this.numInLargePool = numInLargePool; 104 } 105 108 public int getNumInMediumPool() { 109 return numInMediumPool; 110 } 111 114 public void setNumInMediumPool(int numInMediumPool) { 115 this.numInMediumPool = numInMediumPool; 116 } 117 120 public int getNumInSmallPool() { 121 return numInSmallPool; 122 } 123 126 public void setNumInSmallPool(int numInSmallPool) { 127 this.numInSmallPool = numInSmallPool; 128 } 129 132 public int getSmallBufferSize() { 133 return smallBufferSize; 134 } 135 138 public void setSmallBufferSize(int smallBufferSize) { 139 this.smallBufferSize = smallBufferSize; 140 } 141 } 142 | Popular Tags |