public class StringBufferPool extends AbstractPool
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_POOL_NAME |
protected static StringBufferPool |
m_corePoolFactory |
protected static HashMap<String,StringBufferPool> |
mm_namedPools |
protected String |
mm_poolName |
protected static int |
STRINGBUFFER_INITIALCAPACITY |
protected static int |
STRINGBUFFER_INITIALNBINSTANCES |
protected static int |
STRINGBUFFER_MAX_POOLSIZE |
mm_maxPoolSize, mm_unlocked| Modifier | Constructor and Description |
|---|---|
protected |
StringBufferPool(int initialCapacity,
int initialNbInstances,
int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
static StringBufferPool |
createInstance(String poolName,
int intialCapacity)
Creates a pool and bind to the name specified by the poolName argument.
|
static StringBufferPool |
createInstance(String poolName,
int intialCapacity,
int initialNbInstances)
Creates a pool and bind to the name specified by the poolName argument.
|
static StringBufferPool |
createInstance(String poolName,
int intialCapacity,
int initialNbInstances,
int maxPoolSize)
Creates a pool and bind to the name specified by the poolName argument.
|
protected StringBufferPool |
createInstanceInternal(String poolName,
int intialCapacity)
Creates a pool and bind to the name specified by the poolName argument.
|
protected StringBufferPool |
createInstanceInternal(String poolName,
int intialCapacity,
int initialNbInstances)
Creates a pool and bind to the name specified by the poolName argument.
|
protected StringBufferPool |
createInstanceInternal(String poolName,
int intialCapacity,
int initialNbInstances,
int maxPoolSize)
Creates a pool and bind to the name specified by the poolName argument.
|
protected Object |
createPoolObject()
Factory method to create pool objects
|
static void |
deleteInstance(String poolName) |
protected static void |
ensureInitialized() |
protected void |
expirePoolObject(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(String poolName)
Gets a StringBufferPool specified by the poolName argument.
|
protected StringBufferPool |
getInstanceInternal()
Gets the StringBufferPool instance.
|
protected StringBufferPool |
getInstanceInternal(String poolName)
Gets a StringBufferPool specified by the poolName argument.
|
void |
release(RecyclableStringBuffer rStrBuf) |
protected boolean |
validatePoolObject(Object o)
Method called to validate an object that has been put back in the pool
|
getPoolObject, releasePoolObject, updateControllerprotected static StringBufferPool m_corePoolFactory
protected static HashMap<String,StringBufferPool> mm_namedPools
protected static final String DEFAULT_POOL_NAME
protected static final int STRINGBUFFER_INITIALCAPACITY
protected static final int STRINGBUFFER_INITIALNBINSTANCES
protected static final int STRINGBUFFER_MAX_POOLSIZE
protected String mm_poolName
protected StringBufferPool(int initialCapacity,
int initialNbInstances,
int maxSize)
public static StringBufferPool getInstance()
protected static void ensureInitialized()
public static StringBufferPool getInstance(String poolName)
public static StringBufferPool createInstance(String poolName, int intialCapacity)
public static StringBufferPool createInstance(String poolName, int intialCapacity, int initialNbInstances)
public static StringBufferPool createInstance(String poolName, int intialCapacity, int initialNbInstances, int maxPoolSize)
public static void deleteInstance(String poolName)
protected boolean validatePoolObject(Object o)
AbstractPoolvalidatePoolObject in class AbstractPoolo - protected Object createPoolObject() throws Exception
AbstractPoolcreatePoolObject in class AbstractPoolExceptionprotected void expirePoolObject(Object o)
AbstractPoolexpirePoolObject in class AbstractPoolo - public RecyclableStringBuffer get(int size)
size - public void release(RecyclableStringBuffer rStrBuf)
rStrBuf - protected StringBufferPool createInstanceInternal(String poolName, int intialCapacity)
protected StringBufferPool createInstanceInternal(String poolName, int intialCapacity, int initialNbInstances)
protected StringBufferPool createInstanceInternal(String poolName, int intialCapacity, int initialNbInstances, int maxPoolSize)
protected StringBufferPool getInstanceInternal()
protected StringBufferPool getInstanceInternal(String poolName)
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice