Acquires a connection from the connection pool, with a specified timeout period.
Namespace: IBM.CTG
Assembly: IBM.CTG.Client (in IBM.CTG.Client.dll) Version: 10.1.0.0 (10.1.0.0)
Syntax
Parameters
- timeout
- Type: SystemInt32
The maximum time to wait for a connection to become available, in seconds.
Return Value
Type: GatewayConnectionAn available connection.
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | The GatewayConnectionPool has been closed. |
| SocketException | A new connection was attempted but the host name did not resolve to a valid IP address. -or- A new connection was attempted but could not be established. |
| SecurityException | A new connection was attempted but a caller higher in the call stack does not have permission for the requested operation. |
| GatewayException | A connection did not become available within the specified timeout period. -or- A new connection was attempted but an error occurred within the Gateway daemon. |
Remarks
See Also