LogicalChannels Class |
Namespace: OBCOM.NetSwitchLib.Clients
The LogicalChannels type exposes the following members.
Name | Description | |
---|---|---|
Clear | Closes and releases all existing channel pools, and clears the properties of logical channels. This is useful when the property file has been modified, and new values need to be loaded. When a channel pool is closed, all it's associatted logical channels are closed and released. If a executor is using one of these logical channels, it may terminate throwing an exception. | |
ExecuteT(ChannelExecutorT) |
Allocates a logical channel from the default channel pool and
executes the supplied channel executor. The logical channel is
returned to the pool when the executor completes execution, either
successfully or by throwing an exception.
| |
ExecuteT(String, ChannelExecutorT) |
Allocates a logical channel from the default channel pool and
executes the supplied channel executor. The logical channel is
returned to the pool when the executor completes execution, either
successfully or by throwing an exception.
|
This pool is intended to be used in multithreaded environments. Each pool is identified by a unique name (case insensitive), and provides a logical channel to a executor. When the executor completes execution, the logical channel is returned to the pool, so it can be reused by other channel executors.
Property | Description | Type | Default |
---|---|---|---|
logical.channels.props.file | Full path of the property file of logical channels | string | LogicalChannels.properties |