|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.sadun.util.pool2.Configuration
An object definining the configuration for a given object pool.
| Constructor Summary | |
Configuration(java.io.File storageDirectory,
int poolSize)
Create a configuration object with the given parameters but associating an default passivation manager to
the configured pool. |
|
Configuration(java.io.File storageDirectory,
int poolSize,
ObjectPool.PassivationManagerFactory passivationManagerFactory)
Create a configuration object with the given parameters. |
|
Configuration(int poolSize)
Create a configuration object with the given parameters but usin the system's temporary directory as storage directory and associating an default passivation
manager to the configured pool. |
|
| Method Summary | |
ObjectPool.PassivationManagerFactory |
getPassivationManagerFactory()
Returns the passivationManagerFactory. |
int |
getPoolSize()
Returns the poolSize. |
java.io.File |
getStorageDirectory()
Returns the storageDirectory. |
void |
setPassivationManagerFactory(ObjectPool.PassivationManagerFactory passivationThreadFactory)
Sets the passivationManagerFactory. |
void |
setPoolSize(int poolSize)
Sets the poolSize. |
void |
setStorageDirectory(java.io.File storageDirectory)
Sets the storageDirectory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Configuration(java.io.File storageDirectory,
int poolSize,
ObjectPool.PassivationManagerFactory passivationManagerFactory)
storageDirectory - the directory where to store passivated objectpoolSize - the desired size of the pool
public Configuration(java.io.File storageDirectory,
int poolSize)
default passivation manager to
the configured pool.
storageDirectory - the directory where to store passivated objectpoolSize - the desired size of the poolpublic Configuration(int poolSize)
default passivation
manager to the configured pool.
poolSize - the desired size of the pool| Method Detail |
public java.io.File getStorageDirectory()
public void setStorageDirectory(java.io.File storageDirectory)
storageDirectory - The storageDirectory to setpublic int getPoolSize()
public void setPoolSize(int poolSize)
poolSize - The poolSize to setpublic ObjectPool.PassivationManagerFactory getPassivationManagerFactory()
public void setPassivationManagerFactory(ObjectPool.PassivationManagerFactory passivationThreadFactory)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||