|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectBasePoolableObjectFactory
SessionPool.SeConnectionFactory
protected final class SessionPool.SeConnectionFactory
PoolableObjectFactory intended to be used by a Jakarta's commons-pool objects pool, that provides ArcSDE's SeConnections.
Constructor Summary | |
---|---|
SessionPool.SeConnectionFactory(ArcSDEConnectionConfig config)
Creates a new SeConnectionFactory object. |
Method Summary | |
---|---|
void |
activateObject(Object obj)
is invoked on every instance before it is returned from the pool. |
void |
destroyObject(Object obj)
is invoked on every instance when it is being "dropped" from the pool (whether due to the response from validateObject, or for reasons specific to the pool implementation.) |
Object |
makeObject()
Called whenever a new instance is needed. |
void |
passivateObject(Object obj)
|
boolean |
validateObject(Object obj)
is invoked in an implementation-specific fashion to determine if an instance is still valid to be returned by the pool. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionPool.SeConnectionFactory(ArcSDEConnectionConfig config)
config
- DOCUMENT ME!Method Detail |
---|
public Object makeObject() throws IOException
makeObject
in interface PoolableObjectFactory
makeObject
in class BasePoolableObjectFactory
SeConnection
SeException
- if the connection can't be created
IOException
public void activateObject(Object obj)
activateObject
in interface PoolableObjectFactory
activateObject
in class BasePoolableObjectFactory
obj
- public void passivateObject(Object obj)
passivateObject
in interface PoolableObjectFactory
passivateObject
in class BasePoolableObjectFactory
public boolean validateObject(Object obj)
validateObject
in interface PoolableObjectFactory
validateObject
in class BasePoolableObjectFactory
an
- instance of Session
maintained by this pool.
true
if the connection is still alive and operative (checked by
asking its user name), false
otherwise.public void destroyObject(Object obj)
destroyObject
in interface PoolableObjectFactory
destroyObject
in class BasePoolableObjectFactory
obj
- an instance of Session
maintained by this pool.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |