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 classFactory 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 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
-
BarrageSubscriptionRequestHandler
public BarrageSubscriptionRequestHandler(ArrowFlightUtil.DoExchangeMarshaller marshaller, TicketRouter ticketRouter, SessionState session, 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
-