Class WebsocketConsumerServer
java.lang.Object
org.springframework.cloud.fn.consumer.websocket.WebsocketConsumerServer
Bootstraps a Netty server using the
WebsocketConsumerServerInitializer
. Also adds
a LoggingHandler
and uses the logLevel
from WebsocketConsumerProperties.logLevel
.- Author:
- Oliver Moser, Gary Russell, Chris Bono
-
Constructor Summary
ConstructorDescriptionWebsocketConsumerServer
(WebsocketConsumerProperties properties, WebsocketConsumerServerInitializer initializer) -
Method Summary
-
Constructor Details
-
WebsocketConsumerServer
public WebsocketConsumerServer(WebsocketConsumerProperties properties, WebsocketConsumerServerInitializer initializer)
-
-
Method Details
-
getPort
public int getPort() -
init
@PostConstruct public void init() -
shutdown
@PreDestroy public void shutdown() -
run
- Throws:
InterruptedException
-