#include <ConnectionCache.h>
◆ connection_type
◆ factory_type
◆ map_entry_type
◆ map_iter_type
◆ map_type
◆ ConnectionCache()
◆ ~ConnectionCache()
ACE::INet::ConnectionCache::~ConnectionCache |
( |
| ) |
|
◆ claim_connection()
Claim a connection from the cache. Creates a new connection using <connection_factory> if the cache does not contain a matching entry for <key>. If <wait> is true and the state of the matching connection is BUSY the method will block waiting for connection to become available. Returns true if a connection could be successfully claimed and sets <connection> to the claimed connection. Returns false otherwise.
◆ claim_existing_connection()
Attempts to claim an existing connection. Returns true and sets connection if successful. Returns false otherwise. Does not wait when no connection available.
◆ close_all_connections()
void ACE::INet::ConnectionCache::close_all_connections |
( |
| ) |
|
Unconditionally closes all active connections.
◆ close_connection()
Close a previously claimed connection. Deletes the actual connection object and marks the cache entry as CLOSED. Returns true is the connection was successfully closed.
◆ current_size()
size_t ACE::INet::ConnectionCache::current_size |
( |
| ) |
const |
|
inline |
Returns the number of registered cache entries (including CLOSED).
◆ find_connection()
Looks up a matching cache entry for key and updates <cacheval> with the entry state if found. Returns true if found, false otherwise.
◆ has_connection()
bool ACE::INet::ConnectionCache::has_connection |
( |
const ConnectionKey & | key | ) |
|
Returns true if the cache contains a connection matching <key>. Cache entries with state CLOSED are not considered. Returns false otherwise.
◆ release_connection()
Release a previously claimed connection making it available for renewed claiming. Returns true if the connection was successfully released.
◆ set_connection()
Updates cache entry state.
◆ cache_map_
map_type ACE::INet::ConnectionCache::cache_map_ |
|
private |
◆ condition_
◆ lock_
The documentation for this class was generated from the following files: