MessageReceivingOperations

Operations for receiving messages from a destination.

@author Mark Fisher @author Rossen Stoyanchev @since 4.0 @param (T) the type of destination @see GenericMessagingTemplate

interface MessageReceivingOperations (
T
) {}

Members

Functions

receive
Message!(T) receive()

Receive a message from a default destination. @return the received message, possibly {@code null} if the message could not be received, for example due to a timeout

receive
Message!(T) receive(T destination)

Receive a message from the given destination. @param destination the target destination @return the received message, possibly {@code null} if the message could not be received, for example due to a timeout

Meta