public class ORemoteConnectionManager extends Object
Modifier and Type | Field and Description |
---|---|
protected ConcurrentMap<String,ORemoteConnectionPool> |
connections |
protected long |
idleTimeout |
static String |
PARAM_MAX_POOL |
protected long |
timeout |
Constructor and Description |
---|
ORemoteConnectionManager(OContextConfiguration clientConfiguration,
Timer timer) |
Modifier and Type | Method and Description |
---|---|
OChannelBinaryAsynchClient |
acquire(String iServerURL,
OContextConfiguration clientConfiguration) |
void |
checkIdle() |
void |
close() |
protected void |
closePool(ORemoteConnectionPool pool) |
void |
closePool(String url) |
int |
getAvailableConnections(String url) |
int |
getCreatedInstancesInPool(String url) |
int |
getMaxResources(String url) |
ORemoteConnectionPool |
getPool(String url) |
int |
getReusableConnections(String url) |
Set<String> |
getURLs() |
void |
release(OChannelBinaryAsynchClient conn) |
void |
remove(OChannelBinaryAsynchClient conn) |
public static final String PARAM_MAX_POOL
protected final ConcurrentMap<String,ORemoteConnectionPool> connections
protected final long timeout
protected final long idleTimeout
public ORemoteConnectionManager(OContextConfiguration clientConfiguration, Timer timer)
public void close()
public OChannelBinaryAsynchClient acquire(String iServerURL, OContextConfiguration clientConfiguration)
public void release(OChannelBinaryAsynchClient conn)
public void remove(OChannelBinaryAsynchClient conn)
public int getMaxResources(String url)
public int getAvailableConnections(String url)
public int getReusableConnections(String url)
public int getCreatedInstancesInPool(String url)
public void closePool(String url)
protected void closePool(ORemoteConnectionPool pool)
public ORemoteConnectionPool getPool(String url)
public void checkIdle()
Copyright © 2009–2020 OrientDB. All rights reserved.