Class WebsocketFactory

java.lang.Object
io.deephaven.server.jetty.WebsocketFactory
All Implemented Interfaces:
org.eclipse.jetty.util.component.Graceful

public class WebsocketFactory extends Object implements org.eclipse.jetty.util.component.Graceful
Helper class to bridge the gap between Jetty's Graceful interface and the jakarta implementation of the supported grpc websocket transports.

This type is not an Endpoint, so only one instance of this can create and shutdown many endpoints.
  • Constructor Details

    • WebsocketFactory

      public WebsocketFactory(Supplier<GrpcWebsocket> factory, org.eclipse.jetty.websocket.jakarta.server.internal.JakartaWebSocketServerContainer jettyWebsocketContainer)
  • Method Details

    • create

      public jakarta.websocket.Endpoint create()
    • shutdown

      public CompletableFuture<Void> shutdown()
      Specified by:
      shutdown in interface org.eclipse.jetty.util.component.Graceful
    • isShutdown

      public boolean isShutdown()
      Specified by:
      isShutdown in interface org.eclipse.jetty.util.component.Graceful