Class RSocketServerBootstrap
java.lang.Object
org.springframework.boot.rsocket.context.RSocketServerBootstrap
- All Implemented Interfaces:
Aware, ApplicationEventPublisherAware, Lifecycle, Phased, SmartLifecycle
public class RSocketServerBootstrap
extends Object
implements ApplicationEventPublisherAware, SmartLifecycle
Bootstrap an
RSocketServer and start it with the application context.- Since:
- 2.2.0
- Author:
- Brian Clozel
-
Field Summary
Fields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionRSocketServerBootstrap(RSocketServerFactory serverFactory, io.rsocket.SocketAcceptor socketAcceptor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) voidstart()voidstop()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SmartLifecycle
getPhase, isAutoStartup, isPauseable, stop
-
Constructor Details
-
RSocketServerBootstrap
public RSocketServerBootstrap(RSocketServerFactory serverFactory, io.rsocket.SocketAcceptor socketAcceptor)
-
-
Method Details
-
setApplicationEventPublisher
- Specified by:
setApplicationEventPublisherin interfaceApplicationEventPublisherAware
-
start
-
stop
-
isRunning
-