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 classFactory 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 TypeMethodDescriptionvoidclose()voidprotected voidCalled 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:
handleMessagein 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-