Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ConnectionPool::PoolConnection Class Reference

Inheritance diagram for ConnectionPool::PoolConnection:

Connection List of all members.

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

Detailed Description

Utility class to provide the basic connection facilities provided by the connection pool.

Definition at line 777 of file Cluster.d.


Member Function Documentation

this ConnectionPool  pool  )  [inline]
 

Construct a new connection and set its parent

Definition at line 790 of file Cluster.d.

References conduit, parent, and reset().

SocketConduit getConduit  )  [inline]
 

Return the socket belonging to this connection

Reimplemented from Connection.

Definition at line 802 of file Cluster.d.

bool reset  )  [inline]
 

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().

void close  )  [inline]
 

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().

void done ulong  time  )  [inline]
 

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.


Member Data Documentation

ulong time
 

Definition at line 779 of file Cluster.d.

Referenced by ConnectionPool::borrow(), and done().

PoolConnection next
 

Definition at line 780 of file Cluster.d.

Referenced by ConnectionPool::borrow().

ConnectionPool parent
 

Definition at line 781 of file Cluster.d.

Referenced by done(), reset(), and this().

SocketConduit conduit
 

Definition at line 782 of file Cluster.d.

Referenced by close(), reset(), and this().


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:01 2004 for Mango by doxygen 1.3.6