|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.pool.AbstractPool<T>
T - type of object being pooledpublic abstract class AbstractPool<T>
Contains functionality common to pool implementations.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class. |
| Constructor Summary | |
|---|---|
AbstractPool()
|
|
| Method Summary | |
|---|---|
boolean |
activate(T t)
Prepare the object to exit the pool for use. |
Activator<T> |
getActivator()
Returns the activator for this pool. |
String |
getName()
Returns the name for this pool. |
Passivator<T> |
getPassivator()
Returns the passivator for this pool. |
PoolConfig |
getPoolConfig()
Returns the configuration for this pool. |
PruneStrategy |
getPruneStrategy()
Returns the prune strategy for this pool. |
Validator<T> |
getValidator()
Returns the validator for this pool. |
boolean |
passivate(T t)
Prepare the object to enter the pool after use. |
void |
setActivator(Activator<T> a)
Sets the activator for this pool. |
void |
setName(String s)
Sets the name for this pool. |
void |
setPassivator(Passivator<T> p)
Sets the passivator for this pool. |
void |
setPoolConfig(PoolConfig pc)
Sets the configuration for this pool. |
void |
setPruneStrategy(PruneStrategy ps)
Sets the prune strategy for this pool. |
void |
setValidator(Validator<T> v)
Sets the validator for this pool. |
boolean |
validate(T t)
Verify the object is still viable for use in the pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public AbstractPool()
| Method Detail |
|---|
public String getName()
public void setName(String s)
s - pool namepublic PoolConfig getPoolConfig()
public void setPoolConfig(PoolConfig pc)
pc - pool configpublic Activator<T> getActivator()
public void setActivator(Activator<T> a)
a - activatorpublic boolean activate(T t)
t - pooled object
public Passivator<T> getPassivator()
public void setPassivator(Passivator<T> p)
p - passivatorpublic boolean passivate(T t)
t - pooled object
public Validator<T> getValidator()
public void setValidator(Validator<T> v)
v - validatorpublic boolean validate(T t)
t - pooled object
public PruneStrategy getPruneStrategy()
public void setPruneStrategy(PruneStrategy ps)
ps - prune strategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||