Package org.openwms.tms.routing.app
Class Registrator
java.lang.Object
org.openwms.tms.routing.app.Registrator
A Registrator.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.springframework.amqp.core.AmqpTemplate
private final String
private final org.openwms.common.location.api.commands.LocationReplicaRegistration
private static final org.slf4j.Logger
-
Constructor Summary
ConstructorDescriptionRegistrator
(String exchangeName, String applicationName, String locationRequestRemovalPath, String locationRemovalPath, org.springframework.amqp.core.AmqpTemplate amqpTemplate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onContextStarted
(org.springframework.context.event.ContextStartedEvent cse) void
onContextStopped
(org.springframework.context.event.ContextClosedEvent cse) void
onTimer()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
exchangeName
-
locationReplicaRegistration
private final org.openwms.common.location.api.commands.LocationReplicaRegistration locationReplicaRegistration -
amqpTemplate
private final org.springframework.amqp.core.AmqpTemplate amqpTemplate
-
-
Constructor Details
-
Registrator
Registrator(@Value("${owms.commands.common.registration.exchange-name}") String exchangeName, @Value("${spring.application.name}") String applicationName, @Value("${owms.routing.registration.location-request-removal-path}") String locationRequestRemovalPath, @Value("${owms.routing.registration.location-removal-path}") String locationRemovalPath, org.springframework.amqp.core.AmqpTemplate amqpTemplate)
-
-
Method Details
-
onContextStarted
@EventListener public void onContextStarted(org.springframework.context.event.ContextStartedEvent cse) -
onContextStopped
@EventListener public void onContextStopped(org.springframework.context.event.ContextClosedEvent cse) -
onTimer
@Scheduled(fixedDelay=30000L) public void onTimer()
-