Package org.openwms.wms.movements.impl
Class TransactionWriter
java.lang.Object
org.openwms.wms.movements.impl.TransactionWriter
A TransactionWriter is a Spring managed bean, activated with "ASYNCHRONOUS" profile that takes care of
writing business transactions via the COMMON Transaction service.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private final AsyncTransactionApi
private final AsyncTransportUnitApi
private final org.openwms.common.location.api.LocationApi
private final org.ameba.i18n.Translator
-
Constructor Summary
ConstructorDescriptionTransactionWriter
(String applicationName, org.ameba.i18n.Translator translator, org.openwms.common.location.api.LocationApi locationApi, AsyncTransportUnitApi asyncTransportUnitApi, AsyncTransactionApi asyncTransactionApi) -
Method Summary
-
Field Details
-
applicationName
-
translator
private final org.ameba.i18n.Translator translator -
locationApi
private final org.openwms.common.location.api.LocationApi locationApi -
asyncTransportUnitApi
-
asyncTransactionApi
-
-
Constructor Details
-
TransactionWriter
TransactionWriter(@Value("${spring.application.name}") String applicationName, org.ameba.i18n.Translator translator, org.openwms.common.location.api.LocationApi locationApi, AsyncTransportUnitApi asyncTransportUnitApi, AsyncTransactionApi asyncTransactionApi)
-
-
Method Details
-
onEvent
@Measured @TransactionalEventListener @Transactional(propagation=REQUIRES_NEW) public void onEvent(MovementEvent event) -
onEvent
@Measured @TransactionalEventListener @Transactional(propagation=REQUIRES_NEW) public void onEvent(MovementTargetChangedEvent event)
-