Package io.deephaven.server.arrow
Class ArrowFlightUtil.DoExchangeMarshaller
java.lang.Object
io.deephaven.engine.liveness.SingletonLivenessManager
io.deephaven.server.arrow.ArrowFlightUtil.DoExchangeMarshaller
- All Implemented Interfaces:
LivenessManager
,ReleasableLivenessManager
,io.grpc.stub.StreamObserver<InputStream>
,Closeable
,AutoCloseable
- Enclosing class:
- ArrowFlightUtil
public static class ArrowFlightUtil.DoExchangeMarshaller
extends SingletonLivenessManager
implements io.grpc.stub.StreamObserver<InputStream>, Closeable
Helper class that maintains a subscription whether it was created by a bi-directional stream request or the
no-client-streaming request. If the SubscriptionRequest sets the sequence, then it treats sequence as a watermark
and will not send out-of-order requests (due to out-of-band requests). The client should already anticipate
subscription changes may be coalesced by the BarrageMessageProducer.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionDoExchangeMarshaller
(TicketRouter ticketRouter, BarrageStreamGenerator.Factory streamGeneratorFactory, BarrageMessageProducer.Operation.Factory bmpOperationFactory, HierarchicalTableViewSubscription.Factory htvsFactory, BarrageMessageProducer.Adapter<io.deephaven.barrage.flatbuf.BarrageSubscriptionRequest, BarrageSubscriptionOptions> subscriptionOptAdapter, BarrageMessageProducer.Adapter<io.deephaven.barrage.flatbuf.BarrageSnapshotRequest, BarrageSnapshotOptions> snapshotOptAdapter, SessionService.ErrorTransformer errorTransformer, SessionState session, io.grpc.stub.StreamObserver<InputStream> responseObserver) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
onCancel()
void
void
void
onNext
(InputStream request) Methods inherited from class io.deephaven.engine.liveness.SingletonLivenessManager
release, tryManage, tryUnmanage, tryUnmanage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.engine.liveness.LivenessManager
manage, unmanage, unmanage
-
Constructor Details
-
DoExchangeMarshaller
@AssistedInject public DoExchangeMarshaller(TicketRouter ticketRouter, BarrageStreamGenerator.Factory streamGeneratorFactory, BarrageMessageProducer.Operation.Factory bmpOperationFactory, HierarchicalTableViewSubscription.Factory htvsFactory, BarrageMessageProducer.Adapter<io.deephaven.barrage.flatbuf.BarrageSubscriptionRequest, BarrageSubscriptionOptions> subscriptionOptAdapter, BarrageMessageProducer.Adapter<io.deephaven.barrage.flatbuf.BarrageSnapshotRequest, BarrageSnapshotOptions> snapshotOptAdapter, SessionService.ErrorTransformer errorTransformer, @Assisted SessionState session, @Assisted io.grpc.stub.StreamObserver<InputStream> responseObserver)
-
-
Method Details
-
onNext
- Specified by:
onNext
in interfaceio.grpc.stub.StreamObserver<InputStream>
-
onCancel
public void onCancel() -
onError
- Specified by:
onError
in interfaceio.grpc.stub.StreamObserver<InputStream>
-
onCompleted
public void onCompleted()- Specified by:
onCompleted
in interfaceio.grpc.stub.StreamObserver<InputStream>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-