public class ObjectPool extends ngmObject
name | required | default | description |
ObjectPool.Size.Min | 10 | minimum size of the pool ( NOT IMPLEMENTED ) | |
ObjectPool.Size.Max | 10 | maximum size of the pool. 0 means "unlimited" | |
ObjectPool.Log | standard output | log filename | |
ObjectPool.DebugMode | false | false/true | |
ObjectPool.Watchdog.Interval | 0 | time in miliseconds. 0 means "don't check" ( NOT IMPLEMENTED ) | |
ObjectPool.Watchdog.Lease.Timeout | 0 | time in miliseconds. 0 means "don't check" ( NOT IMPLEMENTED ) | |
ObjectPool.PoolOverflowEventListener | NA | name of PoolOverflowEventListener implementer class |
getInstance(ngmObjectFunction,ObjectPoolElementFactory,String name)
を使用して新規
インスタンスを生成する場合、上記のプロパティ名の"ObjectPool."の代わりに、"ObjectPool.name."で始まる値を優先的に適用する。
When the instace is created by getInstance(ngmObjectFunction,ObjectPoolElementFactory,String name)
,
the property values which are associated with the property name which begins with "ObjectPool.name." will supersede the property values
which are associated with the property name which begins with "ObjectPool.".C_BACKSLASH, C_BLOCK_CLOSE, C_BLOCK_OPEN, C_COMMA, C_CR, C_DOUBLE_BYTE_SPACE, C_DOUBLE_QUATATION, C_DOUBLE_QUOTATION, C_EQUAL, C_HYPHEN, C_LF, C_SINGLE_QUATATION, C_SINGLE_QUOTATION, C_SPACE, C_TAB, S_BACKSLASH, S_BLOCK_CLOSE, S_BLOCK_OPEN, S_COMMA, S_CR, S_CRLF, S_DOUBLE_QUATATION, S_DOUBLE_QUOTATION, S_EQUAL, S_HYPHEN, S_LF, S_SINGLE_QUATATION, S_SINGLE_QUOTATION, S_SPACE, S_TAB
修飾子とタイプ | メソッドと説明 |
---|---|
java.lang.Object |
assign() |
static ObjectPool |
getInstance(ngmObjectFunction o,
ObjectPoolElementFactory factory,
java.lang.String name)
If the pool instance of the same name has been found in the internal named pools map, returns it.
|
java.lang.String |
getName() |
static ObjectPool |
newInstance(ngmObjectFunction o,
ObjectPoolElementFactory factory) |
static ObjectPool |
newInstance(ngmObjectFunction o,
ObjectPoolElementFactory factory,
java.lang.String name) |
void |
release(java.lang.Object o) |
void |
reset(boolean destroy_before_clear)
プールを空にする。
|
void |
setName(java.lang.String name) |
clone, debug, debug, equals_n, equals_n2, getBooleanProperty, getBooleanProperty, getGroupedProperties, getIntProperty, getIntProperty, getLog, getLongProperty, getLongProperty, getProperties, getPropertiesForMe, getProperty, getProperty, getShortProperty, getShortProperty, setLog, setNgmObject, setProperties, sysoutprintln
public static ObjectPool newInstance(ngmObjectFunction o, ObjectPoolElementFactory factory)
public static ObjectPool newInstance(ngmObjectFunction o, ObjectPoolElementFactory factory, java.lang.String name)
public static ObjectPool getInstance(ngmObjectFunction o, ObjectPoolElementFactory factory, java.lang.String name)
o
- factory
- name
- public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.Object assign()
public void release(java.lang.Object o)
public void reset(boolean destroy_before_clear)