Click or drag to resize

LogicalChannels Class

Pool of reusable thread-safe logical channels.
Inheritance Hierarchy
SystemObject
  OBCOM.NetSwitchLib.ClientsLogicalChannels

Namespace:  OBCOM.NetSwitchLib.Clients
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
public static class LogicalChannels

The LogicalChannels type exposes the following members.

Methods
  NameDescription
Public methodStatic memberClear

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.

Public methodStatic memberExecuteT(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.
Public methodStatic memberExecuteT(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.
Top
Remarks

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.

System Properties 
PropertyDescriptionTypeDefault
logical.channels.props.file
Full path of the property file of logical channels
string
LogicalChannels.properties
See Also