Interface INMSConsumer
An object capable of sending messages to some destination
Inherited Members
System.IDisposable.Dispose()
Assembly: Apache.NMS.dll
Syntax
public interface INMSConsumer : IDisposable
Properties
|
Improve this Doc
View Source
A Delegate that is called each time a Message is dispatched to allow the client to do
any necessary transformations on the received message before it is delivered.
Declaration
ConsumerTransformerDelegate ConsumerTransformer { get; set; }
Property Value
|
Improve this Doc
View Source
MessageSelector
Declaration
string MessageSelector { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
Close()
Closes the message consumer.
Declaration
|
Improve this Doc
View Source
Receive()
Waits until a message is available and returns it
Declaration
Returns
|
Improve this Doc
View Source
Receive(TimeSpan)
If a message is available within the timeout duration it is returned otherwise this method returns null
Declaration
IMessage Receive(TimeSpan timeout)
Parameters
Type |
Name |
Description |
System.TimeSpan |
timeout |
|
Returns
|
Improve this Doc
View Source
ReceiveBody<T>()
Declaration
Returns
Type Parameters
|
Improve this Doc
View Source
ReceiveBody<T>(TimeSpan)
Declaration
T ReceiveBody<T>(TimeSpan timeout)
Parameters
Type |
Name |
Description |
System.TimeSpan |
timeout |
|
Returns
Type Parameters
|
Improve this Doc
View Source
ReceiveBodyNoWait<T>()
Declaration
Returns
Type Parameters
|
Improve this Doc
View Source
ReceiveNoWait(Type)
Receives the next message if one is immediately available for delivery on the client side
otherwise this method returns null. It is never an error for this method to return null, the
time of Message availability varies so your client cannot rely on this method to receive a
message immediately after one has been sent.
Declaration
IMessage ReceiveNoWait(Type t)
Parameters
Type |
Name |
Description |
System.Type |
t |
|
Returns
Events
|
Improve this Doc
View Source
Listener
An asynchronous listener which can be used to consume messages asynchronously
Declaration
event MessageListener Listener
Event Type