Class PubSubMessageHandler

java.lang.Object
ch.rasc.wamp2spring.pubsub.PubSubMessageHandler
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, org.springframework.messaging.MessageHandler

public class PubSubMessageHandler extends Object implements org.springframework.messaging.MessageHandler, org.springframework.context.SmartLifecycle, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
  • Field Details

    • logger

      protected final org.apache.commons.logging.Log logger
  • Constructor Details

    • PubSubMessageHandler

      public PubSubMessageHandler(org.springframework.messaging.SubscribableChannel clientInboundChannel, org.springframework.messaging.SubscribableChannel brokerChannel, org.springframework.messaging.MessageChannel clientOutboundChannel, SubscriptionRegistry subscriptionRegistry, HandlerMethodService handlerMethodService, Features features, EventStore eventStore)
  • Method Details

    • setAutoStartup

      public void setAutoStartup(boolean autoStartup)
    • isAutoStartup

      public boolean isAutoStartup()
      Specified by:
      isAutoStartup in interface org.springframework.context.SmartLifecycle
    • getPhase

      public int getPhase()
      Specified by:
      getPhase in interface org.springframework.context.Phased
      Specified by:
      getPhase in interface org.springframework.context.SmartLifecycle
    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • stop

      public final void stop(Runnable callback)
      Specified by:
      stop in interface org.springframework.context.SmartLifecycle
    • isRunning

      public final boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
    • handleMessage

      public void handleMessage(org.springframework.messaging.Message<?> message)
      Specified by:
      handleMessage in interface org.springframework.messaging.MessageHandler
    • sendMessageToClient

      protected void sendMessageToClient(org.springframework.messaging.Message<?> message)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException