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 Object implements org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.SmartLifecycle
Bootstrap an RSocketServer and start it with the application context.
Since:
2.2.0
  • Constructor Details

    • RSocketServerBootstrap

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

    • 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