Package io.deephaven.server.jetty
Class WebsocketFactory
- java.lang.Object
-
- io.deephaven.server.jetty.WebsocketFactory
-
- All Implemented Interfaces:
org.eclipse.jetty.util.component.Graceful
public class WebsocketFactory extends java.lang.Object implements org.eclipse.jetty.util.component.GracefulHelper 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 Summary
Constructors Constructor Description WebsocketFactory(java.util.function.Supplier<io.grpc.servlet.web.websocket.GrpcWebsocket> factory, org.eclipse.jetty.websocket.jakarta.server.internal.JakartaWebSocketServerContainer jettyWebsocketContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.websocket.Endpointcreate()booleanisShutdown()java.util.concurrent.CompletableFuture<java.lang.Void>shutdown()
-
-
-
Method Detail
-
create
public jakarta.websocket.Endpoint create()
-
shutdown
public java.util.concurrent.CompletableFuture<java.lang.Void> shutdown()
- Specified by:
shutdownin interfaceorg.eclipse.jetty.util.component.Graceful
-
isShutdown
public boolean isShutdown()
- Specified by:
isShutdownin interfaceorg.eclipse.jetty.util.component.Graceful
-
-