Package org.openwms.tms.routing.app
Class LocationMessageListener
java.lang.Object
org.openwms.tms.routing.app.LocationMessageListener
@Profile("ASYNCHRONOUS")
@Component
@RabbitListener(queues="${owms.events.common.loc.queue-name}")
class LocationMessageListener
extends Object
A LocationMessageListener listens on changes on entities managed on foreign services.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CacheJanitor
private final LocationService
private static final org.slf4j.Logger
-
Constructor Summary
ConstructorsConstructorDescriptionLocationMessageListener
(CacheJanitor janitor, LocationService locationService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onLocationEvent
(org.openwms.common.location.api.commands.RevokeLocationRemoveCommand obj, String routingKey) Listens on Location messages.void
onLocationEvent
(org.openwms.common.location.api.messages.LocationMO obj, String routingKey) Listens on Location messages.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
janitor
-
locationService
-
-
Constructor Details
-
LocationMessageListener
LocationMessageListener(CacheJanitor janitor, LocationService locationService)
-
-
Method Details
-
onLocationEvent
@Measured @RabbitHandler public void onLocationEvent(@Payload org.openwms.common.location.api.messages.LocationMO obj, @Header("amqp_receivedRoutingKey") String routingKey) Listens on Location messages. -
onLocationEvent
@Measured @RabbitHandler public void onLocationEvent(@Payload org.openwms.common.location.api.commands.RevokeLocationRemoveCommand obj, @Header("amqp_receivedRoutingKey") String routingKey) Listens on Location messages.
-