类 AbstractJmsListenerEndpoint

    • 方法详细资料

      • setDestination

        public void setDestination​(String destination)
        Set the name of the destination for this endpoint.
      • setSubscription

        public void setSubscription​(String subscription)
        Set the name for the durable subscription.
      • setSelector

        public void setSelector​(String selector)
        Set the JMS message selector expression.

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

      • getSelector

        public String getSelector()
        Return the JMS message selector expression, if any.
      • setConcurrency

        public void setConcurrency​(String concurrency)
        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.

      • setupListenerContainer

        public void setupListenerContainer​(MessageListenerContainer listenerContainer)
        从接口复制的说明: JmsListenerEndpoint
        Setup the specified message listener container with the model defined by this endpoint.

        This endpoint must provide the requested missing option(s) of the specified container to make it usable. Usually, this is about setting the destination and the messageListener to use but an implementation may override any default setting that was already set.

        指定者:
        setupListenerContainer 在接口中 JmsListenerEndpoint
        参数:
        listenerContainer - the listener container to configure
      • getEndpointDescription

        protected StringBuilder getEndpointDescription()
        Return a description for this endpoint.

        Available to subclasses, for inclusion in their toString() result.