public class ConnectionPool extends Object
Constructor and Description |
---|
ConnectionPool(ProtocolAdapter protocolAdapter,
ITransportConfig config,
String connectionURL,
PlatformLogicalVersion serviceVersion)
Creates a new Connection Pool with the specified Protocol Adapter, connection URL and max
connections.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
disable() |
void |
enable() |
void |
freeConnection(ConnectionResource clientPeer)
Free a connection (return it to pool).
|
static LongAdder |
getActiveConnectionsCounter() |
ConnectionResource |
getConnection(LRMIMethod lrmiMethod)
Returns a connected Client Peer from the pool.
|
long |
getGeneratedTraffic() |
LRMIProxyMonitoringDetailsImpl |
getMonitoringDetails() |
long |
getReceivedTraffic() |
public ConnectionPool(ProtocolAdapter protocolAdapter, ITransportConfig config, String connectionURL, PlatformLogicalVersion serviceVersion)
public static LongAdder getActiveConnectionsCounter()
public ConnectionResource getConnection(LRMIMethod lrmiMethod) throws RemoteException, MalformedURLException
RemoteException
MalformedURLException
public void freeConnection(ConnectionResource clientPeer)
public long getGeneratedTraffic()
public long getReceivedTraffic()
public void disable()
public void enable()
public LRMIProxyMonitoringDetailsImpl getMonitoringDetails()
public void close()
Copyright © GigaSpaces.