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 Details

    • INPUT_CHANNEL_NAME

      static final String 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:
      wakeUp in interface org.openwms.common.comm.NotRespondingServiceActivator<LocationUpdateMessage>
    • getChannel

      public org.springframework.messaging.MessageChannel getChannel()
      Specified by:
      getChannel in interface org.openwms.common.comm.CustomServiceActivator
    • getChannelName

      public String getChannelName()
      Specified by:
      getChannelName in interface org.openwms.common.comm.CustomServiceActivator