Package dev.snowdrop.vertx.sample.amqp
Class UppercaseProcessor
- java.lang.Object
-
- dev.snowdrop.vertx.sample.amqp.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 Summary
Constructors Constructor Description UppercaseProcessor(AmqpClient client, org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()Create a processing requests receiver and subscribe to its messages publisher.voiddestroy()Cancel processing requests publisher subscription.
-
-
-
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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
destroy
public void destroy()
Cancel processing requests publisher subscription.- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-
-