Package io.deephaven.server.arrow
Class BarrageSubscriptionRequestHandler
java.lang.Object
io.deephaven.server.arrow.BarrageSubscriptionRequestHandler
- All Implemented Interfaces:
ArrowFlightUtil.DoExchangeMarshaller.Handler
,Closeable
,AutoCloseable
public class BarrageSubscriptionRequestHandler
extends Object
implements ArrowFlightUtil.DoExchangeMarshaller.Handler
Handler for BarrageSubscriptionRequest over DoExchange.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Factory to handle Barrage DoExchange subscription requests. -
Constructor Summary
ConstructorsConstructorDescriptionBarrageSubscriptionRequestHandler
(ArrowFlightUtil.DoExchangeMarshaller marshaller, TicketRouter ticketRouter, SessionState session, io.grpc.stub.StreamObserver<BarrageMessageWriter.MessageView> listener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
protected void
Called at the start ofhandleMessage(BarrageProtoUtil.MessageInfo)
to validate that the message is of the correct type and is initialized properly.
-
Constructor Details
-
BarrageSubscriptionRequestHandler
public BarrageSubscriptionRequestHandler(ArrowFlightUtil.DoExchangeMarshaller marshaller, TicketRouter ticketRouter, SessionState session, io.grpc.stub.StreamObserver<BarrageMessageWriter.MessageView> listener)
-
-
Method Details
-
handleMessage
- Specified by:
handleMessage
in interfaceArrowFlightUtil.DoExchangeMarshaller.Handler
-
validateMessage
Called at the start ofhandleMessage(BarrageProtoUtil.MessageInfo)
to validate that the message is of the correct type and is initialized properly.- Parameters:
message
- the message to validate
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-