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
Afficher le fichier Open project: JustGiving/Paramore

Méthodes publiques

Méthode 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

Méthode Description
Dispose ( bool disposing ) : void

Method Details

Acknowledge() public méthode

Acknowledges the specified message.
public Acknowledge ( Message message ) : void
message Message The message.
Résultat void

Dispose() public méthode

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

InputChannel() public méthode

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

Receive() public méthode

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

Reject() public méthode

Rejects the specified message.
public Reject ( Message message ) : void
message Message The message.
Résultat void

Requeue() public méthode

Requeues the specified message.
public Requeue ( Message message, int delayMilliseconds ) : void
message Message
delayMilliseconds int
Résultat void

SetCachedMessageCount() public méthode

public SetCachedMessageCount ( int count ) : void
count int
Résultat void

Stop() public méthode

Stops this instance.
public Stop ( ) : void
Résultat void

SupportsCaching() public méthode

public SupportsCaching ( ) : bool
Résultat bool