Package io.deephaven.server.jetty
Class WebsocketFactory
java.lang.Object
io.deephaven.server.jetty.WebsocketFactory
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful
org.eclipse.jetty.util.component.Graceful.Shutdown, org.eclipse.jetty.util.component.Graceful.ThrowingRunnable
-
Constructor Summary
ConstructorDescriptionWebsocketFactory
(Supplier<GrpcWebsocket> factory, org.eclipse.jetty.websocket.jakarta.server.internal.JakartaWebSocketServerContainer jettyWebsocketContainer) -
Method Summary
-
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
- Specified by:
shutdown
in interfaceorg.eclipse.jetty.util.component.Graceful
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdown
in interfaceorg.eclipse.jetty.util.component.Graceful
-