Class RabbitAsyncTransactionApiImpl
java.lang.Object
org.openwms.transactions.api.commands.RabbitAsyncTransactionApiImpl
- All Implemented Interfaces:
AsyncTransactionApi<TransactionCommand>
@Profile("AMQP")
@Component
class RabbitAsyncTransactionApiImpl
extends Object
implements AsyncTransactionApi<TransactionCommand>
A RabbitTransactionApiImpl is a sender facade that uses RabbitMQ to send transaction commands. It is activated with the Spring profile
AMQP. It expects to work with an exchange name configured as owms.commands.transactions.tx.send-to.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final org.springframework.amqp.core.AmqpTemplate -
Constructor Summary
ConstructorsConstructorDescriptionRabbitAsyncTransactionApiImpl(org.springframework.amqp.core.AmqpTemplate template, String exchangeName) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(TransactionCommand command) Process the givencommand.
-
Field Details
-
template
private final org.springframework.amqp.core.AmqpTemplate template -
exchangeName
-
-
Constructor Details
-
RabbitAsyncTransactionApiImpl
RabbitAsyncTransactionApiImpl(org.springframework.amqp.core.AmqpTemplate template, @Value("${owms.commands.transactions.tx.exchange-name}") String exchangeName)
-
-
Method Details
-
process
Process the givencommand.- Specified by:
processin interfaceAsyncTransactionApi<TransactionCommand>- Parameters:
command- Command to process
-