Class StreamingLogWebSocketHandler
java.lang.Object
org.springframework.cloud.appbroker.logging.streaming.endpoint.StreamingLogWebSocketHandler
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<ServiceInstanceLogEvent>
,org.springframework.web.reactive.socket.WebSocketHandler
public class StreamingLogWebSocketHandler
extends Object
implements org.springframework.web.reactive.socket.WebSocketHandler, org.springframework.context.ApplicationListener<ServiceInstanceLogEvent>
-
Constructor Summary
ConstructorDescriptionStreamingLogWebSocketHandler
(org.springframework.context.ApplicationEventPublisher eventPublisher) -
Method Summary
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.ApplicationListener
supportsAsyncExecution
Methods inherited from interface org.springframework.web.reactive.socket.WebSocketHandler
getSubProtocols
-
Constructor Details
-
StreamingLogWebSocketHandler
public StreamingLogWebSocketHandler(org.springframework.context.ApplicationEventPublisher eventPublisher)
-
-
Method Details
-
handle
public reactor.core.publisher.Mono<Void> handle(org.springframework.web.reactive.socket.WebSocketSession session) - Specified by:
handle
in interfaceorg.springframework.web.reactive.socket.WebSocketHandler
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<ServiceInstanceLogEvent>
-
broadcastLogMessage
-