org.springframework.boot.rsocket.context

Class RSocketServerBootstrap

  • java.lang.Object
    • org.springframework.boot.rsocket.context.RSocketServerBootstrap
  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle


    public class RSocketServerBootstrap
    extends java.lang.Object
    implements org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.SmartLifecycle
    Bootstrap an RSocketServer and start it with the application context.
    Since:
    2.2.0
    • Field Summary

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

        DEFAULT_PHASE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean isRunning() 
      void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) 
      void start() 
      void stop() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.context.SmartLifecycle

        getPhase, isAutoStartup, stop
    • Constructor Detail

      • RSocketServerBootstrap

        public RSocketServerBootstrap(RSocketServerFactory serverFactory,
                                      io.rsocket.SocketAcceptor socketAcceptor)
    • Method Detail

      • setApplicationEventPublisher

        public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
        Specified by:
        setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware
      • 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()
        Specified by:
        isRunning in interface org.springframework.context.Lifecycle