Class TimesyncServiceActivator
java.lang.Object
org.openwms.common.comm.osip.synq.TimesyncServiceActivator
- All Implemented Interfaces:
org.openwms.common.comm.CustomServiceActivator,org.openwms.common.comm.NotRespondingServiceActivator<TimesyncRequest>
@OSIP
@MessageEndpoint
class TimesyncServiceActivator
extends Object
implements org.openwms.common.comm.NotRespondingServiceActivator<TimesyncRequest>
A TimesyncServiceActivator implements the Service Activator pattern and delegates
incoming
TimesyncRequests 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<TimesyncRequest>, Void> (package private) static final StringThe name of the MessageChannel used as input-channel of this message processor. -
Constructor Summary
ConstructorsConstructorDescriptionTimesyncServiceActivator(Function<org.springframework.messaging.support.GenericMessage<TimesyncRequest>, Void> handler, org.springframework.context.ApplicationContext ctx) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.messaging.MessageChannelvoidwakeUp(org.springframework.messaging.support.GenericMessage<TimesyncRequest> message)
-
Field Details
-
INPUT_CHANNEL_NAME
The name of the MessageChannel used as input-channel of this message processor.- See Also:
-
handler
private final Function<org.springframework.messaging.support.GenericMessage<TimesyncRequest>,Void> handler -
ctx
private final org.springframework.context.ApplicationContext ctx
-
-
Constructor Details
-
TimesyncServiceActivator
@Autowired public TimesyncServiceActivator(Function<org.springframework.messaging.support.GenericMessage<TimesyncRequest>, Void> handler, org.springframework.context.ApplicationContext ctx)
-
-
Method Details
-
wakeUp
@OSIP @Measured @ServiceActivator(inputChannel="SYNQMessageInputChannel") public void wakeUp(org.springframework.messaging.support.GenericMessage<TimesyncRequest> message) - Specified by:
wakeUpin interfaceorg.openwms.common.comm.NotRespondingServiceActivator<TimesyncRequest>
-
getChannel
public org.springframework.messaging.MessageChannel getChannel()- Specified by:
getChannelin interfaceorg.openwms.common.comm.CustomServiceActivator
-
getChannelName
- Specified by:
getChannelNamein interfaceorg.openwms.common.comm.CustomServiceActivator
-