Class ORemoteConnectionManager
java.lang.Object
com.orientechnologies.orient.client.remote.ORemoteConnectionManager
Manages network connections against OrientDB servers. All the connection pools are managed in a
Map<url,pool>, but in the future we could have a unique pool per sever and manage database
connections over the protocol.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConcurrentMap<String,ORemoteConnectionPool> protected final longstatic final Stringprotected final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacquire(String url, OContextConfiguration clientConfiguration) voidvoidclose()protected voidvoidintintintgetMaxResources(String url) intgetURLs()voidvoidvoid
-
Field Details
-
PARAM_MAX_POOL
- See Also:
-
connections
-
timeout
protected final long timeout -
idleTimeout
protected final long idleTimeout
-
-
Constructor Details
-
ORemoteConnectionManager
-
-
Method Details
-
close
public void close() -
acquire
-
release
-
remove
-
removeIfPresent
-
getURLs
-
getMaxResources
-
getAvailableConnections
-
getReusableConnections
-
getCreatedInstancesInPool
-
closePool
-
closePool
-
getPool
-
checkIdle
public void checkIdle()
-