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


Member Function Documentation

this ConnectionPool  pool  )  [inline]
 

Construct a new connection and set its parent

Definition at line 798 of file Cluster.d.

SocketConduit getConduit  )  [inline]
 

Return the socket belonging to this connection

Reimplemented from Connection.

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

References SocketConduit.

void close  )  [inline]
 

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

Definition at line 847 of file Cluster.d.

Referenced by ConnectionPool::borrow(), and Node::fail().

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


Member Data Documentation

ulong time
 

Definition at line 787 of file Cluster.d.

Referenced by ConnectionPool::borrow().

PoolConnection next
 

Definition at line 788 of file Cluster.d.

Referenced by ConnectionPool::borrow().

ConnectionPool parent
 

Definition at line 789 of file Cluster.d.

SocketConduit conduit
 

Definition at line 790 of file Cluster.d.


The documentation for this class was generated from the following file:
Generated on Sat Dec 24 17:28:37 2005 for Mango by  doxygen 1.4.0