Interface MultiplexedWebSocketServerStream.GracefulClose

All Superinterfaces:
Supplier<CompletableFuture<Void>>
Enclosing class:
MultiplexedWebSocketServerStream

public static interface MultiplexedWebSocketServerStream.GracefulClose extends Supplier<CompletableFuture<Void>>
Callback to initiate a graceful shutdown of this websocket instance, as an alternative to just closing the websocket. Since this websocket behaves like gRPC transport, we give the client a chance to finish up and close itself before the server does it.
  • Method Summary

    Methods inherited from interface java.util.function.Supplier

    get