Class BaseQueue<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.Framework.Base
Assembly: Simplic.Framework.Base.dll
Syntax
public abstract class BaseQueue<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceBaseQueue(Int32, String)
Constructor
Declaration
public BaseQueue(int ThreadCount, string QueueName)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | ThreadCount | Thread Counter |
System.String | QueueName | Name of the Queue |
BaseQueue(Int32, String, ThreadPriority)
Constructor
Declaration
public BaseQueue(int ThreadCount, string QueueName, ThreadPriority ThreadPriority)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | ThreadCount | ThreadCount |
System.String | QueueName | Queue Name |
System.Threading.ThreadPriority | ThreadPriority | Priority |
Fields
| Improve this Doc View SourcemyQueue
Declaration
protected Queue<T> myQueue
Field Value
Type | Description |
---|---|
System.Collections.Generic.Queue<T> |
Methods
| Improve this Doc View SourceDoLastWorks()
Do Last Works
Declaration
protected virtual void DoLastWorks()
DoWork(T)
Do work
Declaration
protected abstract void DoWork(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Enqueue(T)
Enqueue
Declaration
public void Enqueue(T job)
Parameters
Type | Name | Description |
---|---|---|
T | job |
Enqueue(T, Int32)
Enqueue
Declaration
public void Enqueue(T Job, int in_ms)
Parameters
Type | Name | Description |
---|---|---|
T | Job | |
System.Int32 | in_ms |
ShutDownQueue()
Shuts down the current queue
Declaration
public void ShutDownQueue()