|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISessionPool
Maintains SeConnection
's for a single set of connection properties (for instance: by
server, port, user and password) in a pool to recycle used connections.
The expected optional parameters that you can set up in the argument Map for createDataStore are:
modules/plugin/common (gt-common.jar)
Method Summary | |
---|---|
void |
close()
closes all connections in this pool. |
int |
getAvailableCount()
Returns the number of idle connections |
ArcSDEConnectionConfig |
getConfig()
|
int |
getInUseCount()
Number of active sessions. |
int |
getPoolSize()
returns the number of actual connections held by this connection pool. |
ISession |
getSession()
Grab a session from the pool, this session is the responsibility of the calling code and must be closed after use. |
boolean |
isClosed()
Returns whether this pool is closed |
Method Detail |
---|
int getPoolSize()
void close()
boolean isClosed()
int getAvailableCount()
int getInUseCount()
ISession getSession() throws IOException, UnavailableConnectionException
IOException
- If we could not get a connection
UnavailableConnectionException
- If we are out of connections
IllegalStateException
- If pool has been closed.ArcSDEConnectionConfig getConfig()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |