spring-framework / org.springframework.jms.config / SimpleJmsListenerEndpoint

SimpleJmsListenerEndpoint

open class SimpleJmsListenerEndpoint : AbstractJmsListenerEndpoint

A JmsListenerEndpoint simply providing the MessageListener to invoke to process an incoming message for this endpoint.

Author
Stephane Nicoll

Since
4.1

Constructors

<init>

SimpleJmsListenerEndpoint()

A JmsListenerEndpoint simply providing the MessageListener to invoke to process an incoming message for this endpoint.

Functions

getMessageListener

open fun getMessageListener(): MessageListener

Return the MessageListener to invoke when a message matching the endpoint is received.

setMessageListener

open fun setMessageListener(messageListener: MessageListener): Unit

Set the MessageListener to invoke when a message matching the endpoint is received.

Inherited Functions

getConcurrency

open fun getConcurrency(): String

Return the concurrency for the listener, if any.

getDestination

open fun getDestination(): String

Return the name of the destination for this endpoint.

getId

open fun getId(): String

getSelector

open fun getSelector(): String

Return the JMS message selector expression, if any.

getSubscription

open fun getSubscription(): String

Return the name for the durable subscription, if any.

setConcurrency

open fun setConcurrency(concurrency: String): Unit

Set a concurrency for the listener, if any.

The concurrency limits can be a "lower-upper" String, e.g. "5-10", or a simple upper limit String, e.g. "10" (the lower limit will be 1 in this case).

The underlying container may or may not support all features. For instance, it may not be able to scale: in that case only the upper value is used.

setDestination

open fun setDestination(destination: String): Unit

Set the name of the destination for this endpoint.

setId

open fun setId(id: String): Unit

setSelector

open fun setSelector(selector: String): Unit

Set the JMS message selector expression.

See the JMS specification for a detailed definition of selector expressions.

setSubscription

open fun setSubscription(subscription: String): Unit

Set the name for the durable subscription.

setupListenerContainer

open fun setupListenerContainer(listenerContainer: MessageListenerContainer): Unit

toString

open fun toString(): String