C# Class ActiveMQ.Dispatcher

Handles the multi-threaded dispatching between the transport and the consumers
Mostrar archivo Open project: ThorTech/apache-nms Class Usage Examples

Public Methods

Method Description
Dequeue ( ) : IMessage

Method Dequeue

Dequeue ( System.TimeSpan timeout ) : IMessage

Method Dequeue

DequeueNoWait ( ) : IMessage

Method DequeueNoWait

Enqueue ( ActiveMQ.Commands.ActiveMQMessage message ) : void

Method Enqueue

Redeliver ( ActiveMQ.Commands.ActiveMQMessage message ) : void

Redeliver the given message, putting it at the head of the queue

RedeliverRolledBackMessages ( ) : void

Whem we start a transaction we must redeliver any rolled back messages

SetAsyncDelivery ( AutoResetEvent eventHandle ) : void

Protected Methods

Method Description
PulseSemaphore ( ) : void

Private Methods

Method Description
Close ( ) : void

Method Details

Dequeue() public method

Method Dequeue
public Dequeue ( ) : IMessage
return IMessage

Dequeue() public method

Method Dequeue
public Dequeue ( System.TimeSpan timeout ) : IMessage
timeout System.TimeSpan
return IMessage

DequeueNoWait() public method

Method DequeueNoWait
public DequeueNoWait ( ) : IMessage
return IMessage

Enqueue() public method

Method Enqueue
public Enqueue ( ActiveMQ.Commands.ActiveMQMessage message ) : void
message ActiveMQ.Commands.ActiveMQMessage
return void

PulseSemaphore() protected method

protected PulseSemaphore ( ) : void
return void

Redeliver() public method

Redeliver the given message, putting it at the head of the queue
public Redeliver ( ActiveMQ.Commands.ActiveMQMessage message ) : void
message ActiveMQ.Commands.ActiveMQMessage
return void

RedeliverRolledBackMessages() public method

Whem we start a transaction we must redeliver any rolled back messages
public RedeliverRolledBackMessages ( ) : void
return void

SetAsyncDelivery() public method

public SetAsyncDelivery ( AutoResetEvent eventHandle ) : void
eventHandle System.Threading.AutoResetEvent
return void