Public Member Functions | |
Creator (ILimitConnections &limiter) | |
Construct an instance of a Creator that uses the supplied connection limiter to determine if a connection can be created. | |
Creator (const Creator &rhs) | |
~Creator () | |
If a call to CanCreateConnection() has succeeded and there hasn't been a call to ConnectionCreated() then we call ILimitConnections::ReleaseConnection(). | |
Creator & | operator= (const Creator &rhs) |
bool | CanCreateConnection () |
Query the connection limiter to see if a connection can be created and if it can assume that it is now in the process of being created. | |
void | ConnectionCreated () |
Confirm that the connection has been created. |
Creator | ( | ILimitConnections & | limiter | ) | [explicit] |
Construct an instance of a Creator that uses the supplied connection limiter to determine if a connection can be created.
~Creator | ( | ) |
If a call to CanCreateConnection() has succeeded and there hasn't been a call to ConnectionCreated() then we call ILimitConnections::ReleaseConnection().
bool CanCreateConnection | ( | ) |
Query the connection limiter to see if a connection can be created and if it can assume that it is now in the process of being created.
void ConnectionCreated | ( | ) |
Confirm that the connection has been created.