Inheritance diagram for ConnectionPool::PoolConnection:
Public Member Functions | |
this (ConnectionPool pool) | |
SocketConduit | getConduit () |
bool | reset () |
void | close () |
void | done (ulong time) |
Public Attributes | |
ulong | time |
PoolConnection | next |
ConnectionPool | parent |
SocketConduit | conduit |
Definition at line 777 of file Cluster.d.
|
Construct a new connection and set its parent |
|
Return the socket belonging to this connection Reimplemented from Connection. |
|
Create a new socket and connect it to the specified server. This will cause a dedicated thread to start on the server. Said thread will quit when an error occurs. Reimplemented from Connection. Definition at line 816 of file Cluster.d. References ConnectionPool::address, conduit, Socket::connect(), parent, and SocketConduit::setTimeout(). Referenced by this(). |
|
Close the socket. This will cause any host session to be terminated. Definition at line 839 of file Cluster.d. References IResource::close(), and conduit. Referenced by ConnectionPool::borrow(). |
|
Return this connection to the free-list. Note that we have to synchronize on the parent-pool itself. Reimplemented from Connection. Definition at line 851 of file Cluster.d. References ConnectionPool::freelist, parent, time, and time. |
|
Definition at line 779 of file Cluster.d. Referenced by ConnectionPool::borrow(), and done(). |
|
Definition at line 780 of file Cluster.d. Referenced by ConnectionPool::borrow(). |
|
|
|
|