Class BrowserStreamInterceptor
java.lang.Object
io.deephaven.server.browserstreaming.BrowserStreamInterceptor
- All Implemented Interfaces:
io.grpc.ServerInterceptor
Interceptor to notice x-deephaven-stream headers in a request and provide them to later parts of BrowserStream
tooling so that unary and server-streaming calls can be combined into an emulated bidirectional stream.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<ReqT,
RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall
(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT, RespT> next)
-
Field Details
-
TICKET_HEADER_NAME
- See Also:
-
SEQUENCE_HEADER_NAME
- See Also:
-
HALF_CLOSE_HEADER_NAME
- See Also:
-
-
Constructor Details
-
BrowserStreamInterceptor
public BrowserStreamInterceptor()
-
-
Method Details
-
interceptCall
public <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT, RespT> next) - Specified by:
interceptCall
in interfaceio.grpc.ServerInterceptor
-