Class LocationUpdateMessageServiceActivator
java.lang.Object
org.openwms.common.comm.osip.locu.LocationUpdateMessageServiceActivator
- All Implemented Interfaces:
org.openwms.common.comm.CustomServiceActivator,org.openwms.common.comm.NotRespondingServiceActivator<LocationUpdateMessage>
@OSIP
@MessageEndpoint("locationupdateServiceActivator")
class LocationUpdateMessageServiceActivator
extends Object
implements org.openwms.common.comm.NotRespondingServiceActivator<LocationUpdateMessage>
A LocationUpdateMessageServiceActivator implements the Service Activator pattern and
delegates incoming
LocationUpdateMessages to the appropriate handler function.- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.context.ApplicationContextprivate final Function<org.springframework.messaging.support.GenericMessage<LocationUpdateMessage>, Void> (package private) static final StringThe name of the MessageChannel used as input-channel of this message processor. -
Constructor Summary
ConstructorsConstructorDescriptionLocationUpdateMessageServiceActivator(org.springframework.context.ApplicationContext ctx, Function<org.springframework.messaging.support.GenericMessage<LocationUpdateMessage>, Void> handler) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.messaging.MessageChannelvoidwakeUp(org.springframework.messaging.support.GenericMessage<LocationUpdateMessage> message)
-
Field Details
-
INPUT_CHANNEL_NAME
The name of the MessageChannel used as input-channel of this message processor.- See Also:
-
ctx
private final org.springframework.context.ApplicationContext ctx -
handler
private final Function<org.springframework.messaging.support.GenericMessage<LocationUpdateMessage>,Void> handler
-
-
Constructor Details
-
LocationUpdateMessageServiceActivator
LocationUpdateMessageServiceActivator(org.springframework.context.ApplicationContext ctx, Function<org.springframework.messaging.support.GenericMessage<LocationUpdateMessage>, Void> handler)
-
-
Method Details
-
wakeUp
@OSIP @Measured @ServiceActivator(inputChannel="LOCUMessageInputChannel") public void wakeUp(org.springframework.messaging.support.GenericMessage<LocationUpdateMessage> message) - Specified by:
wakeUpin interfaceorg.openwms.common.comm.NotRespondingServiceActivator<LocationUpdateMessage>
-
getChannel
public org.springframework.messaging.MessageChannel getChannel()- Specified by:
getChannelin interfaceorg.openwms.common.comm.CustomServiceActivator
-
getChannelName
- Specified by:
getChannelNamein interfaceorg.openwms.common.comm.CustomServiceActivator
-