Show / Hide Table of Contents

# Class SimplePriorityMessageDispatchChannel

##### Inheritance

System.Object
SimplePriorityMessageDispatchChannel

##### Implements

MessageDispatchChannel

##### Inherited Members

System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

###### Namespace: Apache.NMS.ActiveMQ.Util

###### Assembly: Apache.NMS.ActiveMQ.dll

##### Syntax

    public class SimplePriorityMessageDispatchChannel : MessageDispatchChannel

### Constructors

| Improve this Doc View Source

#### SimplePriorityMessageDispatchChannel()

##### Declaration

    public SimplePriorityMessageDispatchChannel()

### Fields

| Improve this Doc View Source

#### MAX_PRIORITY

##### Declaration

    public const int MAX_PRIORITY = 10

##### Field Value

Type | Description
--- | ---
System.Int32 |

### Properties

| Improve this Doc View Source

#### Closed

##### Declaration

    public bool Closed { get; set; }

##### Property Value

Type | Description
--- | ---
System.Boolean |

| Improve this Doc View Source

#### Count

##### Declaration

    public long Count { get; }

##### Property Value

Type | Description
--- | ---
System.Int64 |

| Improve this Doc View Source

#### Empty

##### Declaration

    public bool Empty { get; }

##### Property Value

Type | Description
--- | ---
System.Boolean |

| Improve this Doc View Source

#### Running

##### Declaration

    public bool Running { get; set; }

##### Property Value

Type | Description
--- | ---
System.Boolean |

| Improve this Doc View Source

#### SyncRoot

##### Declaration

    public object SyncRoot { get; }

##### Property Value

Type | Description
--- | ---
System.Object |

### Methods

| Improve this Doc View Source

#### Clear()

##### Declaration

    public void Clear()

| Improve this Doc View Source

#### Close()

##### Declaration

    public void Close()

| Improve this Doc View Source

#### Dequeue(TimeSpan)

##### Declaration

    public MessageDispatch Dequeue(TimeSpan timeout)

##### Parameters

Type | Name | Description
--- | --- | ---
System.TimeSpan | timeout |

##### Returns

Type | Description
--- | ---
MessageDispatch |

| Improve this Doc View Source

#### DequeueNoWait()

##### Declaration

    public MessageDispatch DequeueNoWait()

##### Returns

Type | Description
--- | ---
MessageDispatch |

| Improve this Doc View Source

#### Enqueue(MessageDispatch)

##### Declaration

    public void Enqueue(MessageDispatch dispatch)

##### Parameters

Type | Name | Description
--- | --- | ---
MessageDispatch | dispatch |

| Improve this Doc View Source

#### EnqueueFirst(MessageDispatch)

##### Declaration

    public void EnqueueFirst(MessageDispatch dispatch)

##### Parameters

Type | Name | Description
--- | --- | ---
MessageDispatch | dispatch |

| Improve this Doc View Source

#### GetList(MessageDispatch)

##### Declaration

    protected LinkedList<MessageDispatch> GetList(MessageDispatch md)

##### Parameters

Type | Name | Description
--- | --- | ---
MessageDispatch | md |

##### Returns

Type | Description
--- | ---
System.Collections.Generic.LinkedList<MessageDispatch> |

| Improve this Doc View Source

#### GetPriority(MessageDispatch)

##### Declaration

    protected int GetPriority(MessageDispatch message)

##### Parameters

Type | Name | Description
--- | --- | ---
MessageDispatch | message |

##### Returns

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### Peek()

##### Declaration

    public MessageDispatch Peek()

##### Returns

Type | Description
--- | ---
MessageDispatch |

| Improve this Doc View Source

#### RemoveAll()

##### Declaration

    public MessageDispatch[] RemoveAll()

##### Returns

Type | Description
--- | ---
MessageDispatch[] |

| Improve this Doc View Source

#### Signal()

##### Declaration

    public void Signal()

| Improve this Doc View Source

#### Start()

##### Declaration

    public void Start()

| Improve this Doc View Source

#### Stop()

##### Declaration

    public void Stop()

### Implements

MessageDispatchChannel