public class ORemoteConnectionPool extends Object implements OResourcePoolListener<String,OChannelBinaryAsynchClient>
Constructor and Description |
---|
ORemoteConnectionPool(int iMaxResources) |
Modifier and Type | Method and Description |
---|---|
OChannelBinaryAsynchClient |
acquire(String iServerURL,
long timeout,
OContextConfiguration clientConfiguration) |
void |
checkIdle(long timeout) |
protected OChannelBinaryAsynchClient |
createNetworkConnection(String iServerURL,
OContextConfiguration clientConfiguration) |
OChannelBinaryAsynchClient |
createNewResource(String iKey,
Object... iAdditionalArgs)
Creates a new resource to be used and to be pooled when the client finishes with it.
|
OResourcePool<String,OChannelBinaryAsynchClient> |
getPool() |
boolean |
reuseResource(String iKey,
Object[] iAdditionalArgs,
OChannelBinaryAsynchClient iValue)
Reuses the pooled resource.
|
protected OChannelBinaryAsynchClient createNetworkConnection(String iServerURL, OContextConfiguration clientConfiguration) throws OIOException
OIOException
public OChannelBinaryAsynchClient createNewResource(String iKey, Object... iAdditionalArgs)
OResourcePoolListener
createNewResource
in interface OResourcePoolListener<String,OChannelBinaryAsynchClient>
public boolean reuseResource(String iKey, Object[] iAdditionalArgs, OChannelBinaryAsynchClient iValue)
OResourcePoolListener
reuseResource
in interface OResourcePoolListener<String,OChannelBinaryAsynchClient>
public OResourcePool<String,OChannelBinaryAsynchClient> getPool()
public OChannelBinaryAsynchClient acquire(String iServerURL, long timeout, OContextConfiguration clientConfiguration)
public void checkIdle(long timeout)
Copyright © 2009–2020 OrientDB. All rights reserved.