UA Bundle SDK .NET  2.3.1.334
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Groups Pages
UnifiedAutomation.UaBase.ApplicationThreadPool Class Reference

Manages a queue of requests. More...

Inherits IDisposable.

Public Member Functions

 ApplicationThreadPool (int minThreadCount, int maxThreadCount, int maxRequestCount)
 Initializes a new instance of the ThreadPool class. More...
 
void Dispose ()
 Frees any unmanaged resources. More...
 
virtual void Queue (object request, ThreadPoolEventHandler callback)
 Schedules an incoming request. More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 An overrideable version of the Dispose. More...
 

Properties

string PoolName [get, set]
 Gets or sets the name of the thread pool. More...
 
int QueueLength [get]
 Gets the current length of the queue. More...
 
int TotalThreadCount [get]
 Gets the total thread count. More...
 
int ActiveThreadCount [get]
 Gets the active thread count. More...
 
int MaxThreadCount [get]
 Gets the maximum thread count. More...
 
int MinThreadCount [get]
 Gets the minimum thread count. More...
 
int MaxRequestCount [get]
 Gets the maximum request count. More...
 

Detailed Description

Manages a queue of requests.

Constructor & Destructor Documentation

UnifiedAutomation.UaBase.ApplicationThreadPool.ApplicationThreadPool ( int  minThreadCount,
int  maxThreadCount,
int  maxRequestCount 
)
inline

Initializes a new instance of the ThreadPool class.

Parameters
minThreadCountThe minimum number of threads in the pool.
maxThreadCountThe maximum number of threads in the pool.
maxRequestCountThe maximum number of requests that will placed in the queue.

Member Function Documentation

void UnifiedAutomation.UaBase.ApplicationThreadPool.Dispose ( )
inline

Frees any unmanaged resources.

virtual void UnifiedAutomation.UaBase.ApplicationThreadPool.Dispose ( bool  disposing)
inlineprotectedvirtual

An overrideable version of the Dispose.

virtual void UnifiedAutomation.UaBase.ApplicationThreadPool.Queue ( object  request,
ThreadPoolEventHandler  callback 
)
inlinevirtual

Schedules an incoming request.

Parameters
requestThe request.
callbackThe callback.

Property Documentation

int UnifiedAutomation.UaBase.ApplicationThreadPool.ActiveThreadCount
get

Gets the active thread count.

The active thread count.

int UnifiedAutomation.UaBase.ApplicationThreadPool.MaxRequestCount
get

Gets the maximum request count.

The maximum request count.

int UnifiedAutomation.UaBase.ApplicationThreadPool.MaxThreadCount
get

Gets the maximum thread count.

The maximum thread count.

int UnifiedAutomation.UaBase.ApplicationThreadPool.MinThreadCount
get

Gets the minimum thread count.

The minimum thread count.

string UnifiedAutomation.UaBase.ApplicationThreadPool.PoolName
getset

Gets or sets the name of the thread pool.

The name of the thread pool.

int UnifiedAutomation.UaBase.ApplicationThreadPool.QueueLength
get

Gets the current length of the queue.

The current length of the queue.

int UnifiedAutomation.UaBase.ApplicationThreadPool.TotalThreadCount
get

Gets the total thread count.

The total thread count.


The documentation for this class was generated from the following file: