Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CachedMessageConsumer.Receive(TimeSpan) Method

Receives the next message that arrives within the specified timeout interval.

[Visual Basic]
Public NotOverridable Overloads Sub Receive( _
   ByVal timeout As TimeSpan _
) _
    Implements IMessageConsumer.Receive
[C#]
public IMessage Receive(
   TimeSpan timeout
);

Parameters

timeout
The timeout value.

Return Value

the next message produced for this message consumer, or null if the timeout expires or this message consumer is concurrently closed

Implements

IMessageConsumer.Receive

See Also

CachedMessageConsumer Class | Spring.Messaging.Nms.Connections Namespace | CachedMessageConsumer.Receive Overload List