public class SimpleJmsListenerEndpoint extends AbstractJmsListenerEndpoint
JmsListenerEndpoint
simply providing the MessageListener
to
invoke to process an incoming message for this endpoint.Constructor and Description |
---|
SimpleJmsListenerEndpoint() |
Modifier and Type | Method and Description |
---|---|
protected MessageListener |
createMessageListener(MessageListenerContainer container)
Create a
MessageListener that is able to serve this endpoint for the
specified container. |
protected StringBuilder |
getEndpointDescription()
Return a description for this endpoint.
|
MessageListener |
getMessageListener()
Return the
MessageListener to invoke when a message matching
the endpoint is received. |
void |
setMessageListener(MessageListener messageListener)
Set the
MessageListener to invoke when a message matching
the endpoint is received. |
getConcurrency, getDestination, getId, getSelector, getSubscription, setConcurrency, setDestination, setId, setSelector, setSubscription, setupListenerContainer, toString
public void setMessageListener(@Nullable MessageListener messageListener)
MessageListener
to invoke when a message matching
the endpoint is received.@Nullable public MessageListener getMessageListener()
MessageListener
to invoke when a message matching
the endpoint is received.protected MessageListener createMessageListener(MessageListenerContainer container)
AbstractJmsListenerEndpoint
MessageListener
that is able to serve this endpoint for the
specified container.createMessageListener
in class AbstractJmsListenerEndpoint
protected StringBuilder getEndpointDescription()
AbstractJmsListenerEndpoint
Available to subclasses, for inclusion in their toString()
result.
getEndpointDescription
in class AbstractJmsListenerEndpoint