|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sapportals.portal.prt.util.AbstractPool
|
+--com.sapportals.portal.prt.util.StringBufferPool
StringBufferPool.java Created: Wed Jun 27 10:52:51 2001
| Field Summary | |
protected static java.lang.String |
DEFAULT_POOL_NAME
|
protected static StringBufferPool |
m_corePoolFactory
|
protected static java.util.HashMap |
mm_namedPools
|
protected java.lang.String |
mm_poolName
|
protected static int |
STRINGBUFFER_INITIALCAPACITY
|
protected static int |
STRINGBUFFER_INITIALNBINSTANCES
|
protected static int |
STRINGBUFFER_MAX_POOLSIZE
|
| Fields inherited from class com.sapportals.portal.prt.util.AbstractPool |
mm_maxPoolSize, mm_unlocked |
| Constructor Summary | |
protected |
StringBufferPool(int initialCapacity,
int initialNbInstances,
int maxSize)
|
| Method Summary | |
static StringBufferPool |
createInstance(java.lang.String poolName,
int intialCapacity)
Creates a pool and bind to the name specified by the poolName argument. |
static StringBufferPool |
createInstance(java.lang.String poolName,
int intialCapacity,
int initialNbInstances)
Creates a pool and bind to the name specified by the poolName argument. |
static StringBufferPool |
createInstance(java.lang.String poolName,
int intialCapacity,
int initialNbInstances,
int maxPoolSize)
Creates a pool and bind to the name specified by the poolName argument. |
protected StringBufferPool |
createInstanceInternal(java.lang.String poolName,
int intialCapacity)
Creates a pool and bind to the name specified by the poolName argument. |
protected StringBufferPool |
createInstanceInternal(java.lang.String poolName,
int intialCapacity,
int initialNbInstances)
Creates a pool and bind to the name specified by the poolName argument. |
protected StringBufferPool |
createInstanceInternal(java.lang.String poolName,
int intialCapacity,
int initialNbInstances,
int maxPoolSize)
Creates a pool and bind to the name specified by the poolName argument. |
protected java.lang.Object |
createPoolObject()
Factory method to create pool objects |
static void |
deleteInstance(java.lang.String poolName)
|
protected static void |
ensureInitialized()
|
protected void |
expirePoolObject(java.lang.Object o)
Callback when object are not managed anymore by the pool. |
RecyclableStringBuffer |
get(int size)
Returns the |
static StringBufferPool |
getInstance()
Gets the StringBufferPool instance. |
static StringBufferPool |
getInstance(java.lang.String poolName)
Gets a StringBufferPool specified by the poolName argument. |
protected StringBufferPool |
getInstanceInternal()
Gets the StringBufferPool instance. |
protected StringBufferPool |
getInstanceInternal(java.lang.String poolName)
Gets a StringBufferPool specified by the poolName argument. |
void |
release(RecyclableStringBuffer rStrBuf)
|
protected boolean |
validatePoolObject(java.lang.Object o)
Method called to validate an object that has been put back in the pool |
| Methods inherited from class com.sapportals.portal.prt.util.AbstractPool |
getPoolObject, releasePoolObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static StringBufferPool m_corePoolFactory
protected static java.util.HashMap mm_namedPools
protected static final java.lang.String DEFAULT_POOL_NAME
protected static final int STRINGBUFFER_INITIALCAPACITY
protected static final int STRINGBUFFER_INITIALNBINSTANCES
protected static final int STRINGBUFFER_MAX_POOLSIZE
protected java.lang.String mm_poolName
| Constructor Detail |
protected StringBufferPool(int initialCapacity,
int initialNbInstances,
int maxSize)
| Method Detail |
public static StringBufferPool getInstance()
protected static void ensureInitialized()
public static StringBufferPool getInstance(java.lang.String poolName)
public static StringBufferPool createInstance(java.lang.String poolName,
int intialCapacity)
public static StringBufferPool createInstance(java.lang.String poolName,
int intialCapacity,
int initialNbInstances)
public static StringBufferPool createInstance(java.lang.String poolName,
int intialCapacity,
int initialNbInstances,
int maxPoolSize)
public static void deleteInstance(java.lang.String poolName)
protected boolean validatePoolObject(java.lang.Object o)
AbstractPoolvalidatePoolObject in class AbstractPoolo -
protected java.lang.Object createPoolObject()
throws java.lang.Exception
AbstractPoolcreatePoolObject in class AbstractPooljava.lang.Exception - protected void expirePoolObject(java.lang.Object o)
AbstractPoolexpirePoolObject in class AbstractPoolo - public RecyclableStringBuffer get(int size)
size - public void release(RecyclableStringBuffer rStrBuf)
rStrBuf -
protected StringBufferPool createInstanceInternal(java.lang.String poolName,
int intialCapacity)
protected StringBufferPool createInstanceInternal(java.lang.String poolName,
int intialCapacity,
int initialNbInstances)
protected StringBufferPool createInstanceInternal(java.lang.String poolName,
int intialCapacity,
int initialNbInstances,
int maxPoolSize)
protected StringBufferPool getInstanceInternal()
protected StringBufferPool getInstanceInternal(java.lang.String poolName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||