C# Class paramore.brighter.commandprocessor.InputChannel

Class InputChannel. An IAmAChannel for reading messages from a Task Queue and acknowledging receipt of those messages
Inheritance: IAmAnInputChannel
Exibir arquivo Open project: JustGiving/Paramore

Public Methods

Method Description
Acknowledge ( Message message ) : void

Acknowledges the specified message.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

InputChannel ( string channelName, IAmAMessageConsumer messageConsumer ) : System

Initializes a new instance of the InputChannel class.

Receive ( int timeoutinMilliseconds ) : Message

Receives the specified timeout in milliseconds.

Reject ( Message message ) : void

Rejects the specified message.

Requeue ( Message message, int delayMilliseconds ) : void

Requeues the specified message.

SetCachedMessageCount ( int count ) : void
Stop ( ) : void

Stops this instance.

SupportsCaching ( ) : bool

Private Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Acknowledge() public method

Acknowledges the specified message.
public Acknowledge ( Message message ) : void
message Message The message.
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

InputChannel() public method

Initializes a new instance of the InputChannel class.
public InputChannel ( string channelName, IAmAMessageConsumer messageConsumer ) : System
channelName string
messageConsumer IAmAMessageConsumer The messageConsumer.
return System

Receive() public method

Receives the specified timeout in milliseconds.
public Receive ( int timeoutinMilliseconds ) : Message
timeoutinMilliseconds int The timeout in milliseconds.
return Message

Reject() public method

Rejects the specified message.
public Reject ( Message message ) : void
message Message The message.
return void

Requeue() public method

Requeues the specified message.
public Requeue ( Message message, int delayMilliseconds ) : void
message Message
delayMilliseconds int
return void

SetCachedMessageCount() public method

public SetCachedMessageCount ( int count ) : void
count int
return void

Stop() public method

Stops this instance.
public Stop ( ) : void
return void

SupportsCaching() public method

public SupportsCaching ( ) : bool
return bool