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


Member Function Documentation

this ConnectionPool  pool  )  [inline]
 

Construct a new connection and set its parent

Definition at line 795 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 807 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 821 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 844 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 856 of file Cluster.d.

References ConnectionPool::freelist, parent, time, and time.


Member Data Documentation

ulong time
 

Definition at line 784 of file Cluster.d.

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

PoolConnection next
 

Definition at line 785 of file Cluster.d.

Referenced by ConnectionPool::borrow().

ConnectionPool parent
 

Definition at line 786 of file Cluster.d.

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

SocketConduit conduit
 

Definition at line 787 of file Cluster.d.

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


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 00:31:07 2005 for Mango by doxygen 1.3.6