Class UppercaseProcessor

  • All Implemented Interfaces:
    org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

    @Component
    public class UppercaseProcessor
    extends Object
    implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
    Uppercase processor subscribes to the requests queue, converts each received message to uppercase and send it to the results queue.
    • Constructor Detail

      • UppercaseProcessor

        public UppercaseProcessor​(AmqpClient client,
                                  org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ server)
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Create a processing requests receiver and subscribe to its messages publisher.
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • destroy

        public void destroy()
        Cancel processing requests publisher subscription.
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean