Class MessageLogConsumerContainer

  • All Implemented Interfaces:
    org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

    public class MessageLogConsumerContainer
    extends java.lang.Object
    implements org.springframework.context.SmartLifecycle
    • Field Summary

      • Fields inherited from interface org.springframework.context.SmartLifecycle

        DEFAULT_PHASE
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageLogConsumerContainer​(java.lang.String messageLogBeanName, ChannelPosition startFrom, org.springframework.context.ApplicationContext applicationContext)  
    • Method Summary

      Modifier and Type Method Description
      int getPhase()  
      boolean isAutoStartup()  
      boolean isRunning()
      Check whether this component is currently running.
      void start()  
      void stop()  
      void stop​(java.lang.Runnable callback)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessageLogConsumerContainer

        public MessageLogConsumerContainer​(java.lang.String messageLogBeanName,
                                           ChannelPosition startFrom,
                                           org.springframework.context.ApplicationContext applicationContext)
    • Method Detail

      • isAutoStartup

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

        public void stop​(java.lang.Runnable callback)
        Specified by:
        stop 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
      • isRunning

        public boolean isRunning()
        Check whether this component is currently running.

        In the case of a container, this will return true only if all components that apply are currently running.

        Specified by:
        isRunning in interface org.springframework.context.Lifecycle
        Returns:
        whether the component is currently running