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 org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ConstructorDescriptionRSocketServerBootstrap
(RSocketServerFactory serverFactory, io.rsocket.SocketAcceptor socketAcceptor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setApplicationEventPublisher
(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 Details
-
RSocketServerBootstrap
public RSocketServerBootstrap(RSocketServerFactory serverFactory, io.rsocket.SocketAcceptor socketAcceptor)
-
-
Method Details
-
setApplicationEventPublisher
- Specified by:
setApplicationEventPublisher
in interfaceApplicationEventPublisherAware
-
start
public void start() -
stop
public void stop() -
isRunning
public boolean isRunning()
-