org.deegree.io.sdeapi
Class SDEPool
java.lang.Object
java.util.TimerTask
org.deegree.framework.util.ObjectPool
org.deegree.io.sdeapi.SDEPool
- All Implemented Interfaces:
- java.lang.Runnable
public class SDEPool
- extends ObjectPool
class to manage a pool of sde connections.
- Version:
- 2.0
- Author:
- Christoph Pollmann
Constructor Summary |
SDEPool(java.lang.String server,
int instance,
java.lang.String database,
java.lang.String version,
java.lang.String user,
java.lang.String password)
|
Method Summary |
java.lang.Object |
acquireObject()
get an object from the object pool |
void |
onObjectKill(java.lang.Object o)
will be called when the object is removed from the pool |
Methods inherited from class org.deegree.framework.util.ObjectPool |
clear, getInstance, getMaxInstances, getMaxLifeTime, getMaxUsageTime, getUpdateInterval, releaseObject, run, setMaxInstances, setMaxLifeTime, setMaxUsageTime, setUpdateInterval, toString |
Methods inherited from class java.util.TimerTask |
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SDEPool
public SDEPool(java.lang.String server,
int instance,
java.lang.String database,
java.lang.String version,
java.lang.String user,
java.lang.String password)
- Parameters:
server
- instance
- database
- version
- user
- password
-
acquireObject
public java.lang.Object acquireObject()
throws java.lang.Exception
- get an object from the object pool
- Returns:
- an object from the object pool
- Throws:
java.lang.Exception
onObjectKill
public void onObjectKill(java.lang.Object o)
- will be called when the object is removed from the pool
- Specified by:
onObjectKill
in class ObjectPool
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org