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 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 interface org.springframework.web.reactive.socket.WebSocketHandler
    • onApplicationEvent

      public void onApplicationEvent(ServiceInstanceLogEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<ServiceInstanceLogEvent>
    • broadcastLogMessage

      public void broadcastLogMessage(ServiceInstanceLogEvent event)