Package io.deephaven.server.arrow
Class BarrageSnapshotRequestHandler
java.lang.Object
io.deephaven.server.arrow.BarrageSnapshotRequestHandler
- All Implemented Interfaces:
ArrowFlightUtil.DoExchangeMarshaller.Handler
,Closeable
,AutoCloseable
public class BarrageSnapshotRequestHandler
extends Object
implements ArrowFlightUtil.DoExchangeMarshaller.Handler
Handler for DoGetRequest over DoExchange.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Factory to handle Barrage DoExchange snapshot requests. -
Constructor Summary
ConstructorsConstructorDescriptionBarrageSnapshotRequestHandler
(ArrowFlightUtil.DoExchangeMarshaller marshaller, TicketRouter ticketRouter, SessionState session, BarrageMessageWriter.Factory streamGeneratorFactory, 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
-
BarrageSnapshotRequestHandler
public BarrageSnapshotRequestHandler(ArrowFlightUtil.DoExchangeMarshaller marshaller, TicketRouter ticketRouter, SessionState session, BarrageMessageWriter.Factory streamGeneratorFactory, 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
-