Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NmsTemplate.ReceiveSelected(IDestination, String) Method

Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.

[Visual Basic]
Public NotOverridable Overloads Sub ReceiveSelected( _
   ByVal destination As IDestination, _
   ByVal messageSelector As String _
) _
    Implements INmsOperations.ReceiveSelected
[C#]
public IMessage ReceiveSelected(
   IDestination destination,
   string messageSelector
);

Parameters

destination
the destination to receive a message from
messageSelector
the NMS message selector expression (or
null
if none). See the NMS specification for a detailed definition of selector expressions.

Return Value

the message received by the consumer, or

null
if the timeout expires

Implements

INmsOperations.ReceiveSelected

See Also

NmsTemplate Class | Spring.Messaging.Nms.Core Namespace | NmsTemplate.ReceiveSelected Overload List