Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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 781 of file Cluster.d.


Member Function Documentation

this ConnectionPool  pool  )  [inline]
 

Construct a new connection and set its parent

Definition at line 794 of file Cluster.d.

SocketConduit getConduit  )  [inline]
 

Return the socket belonging to this connection

Reimplemented from Connection.

Definition at line 806 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 820 of file Cluster.d.

void close  )  [inline]
 

Close the socket. This will cause any host session to be terminated.

Definition at line 843 of file Cluster.d.

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 855 of file Cluster.d.


Member Data Documentation

ulong time
 

Definition at line 783 of file Cluster.d.

Referenced by ConnectionPool::borrow().

PoolConnection next
 

Definition at line 784 of file Cluster.d.

Referenced by ConnectionPool::borrow().

ConnectionPool parent
 

Definition at line 785 of file Cluster.d.

SocketConduit conduit
 

Definition at line 786 of file Cluster.d.


The documentation for this class was generated from the following file:
Generated on Fri Nov 11 18:44:32 2005 for Mango by  doxygen 1.4.0