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.
  • Constructor Details

  • Method Details

    • onNext

      public void onNext(InputStream request)
      Specified by:
      onNext in interface io.grpc.stub.StreamObserver<InputStream>
    • applyCompression

      public void applyCompression(ExchangeMarshaller marshallerForExport, Object export, String logName)
      Chooses the response compression for export from its allowed-compression attribute and the compression types the client accepts. Must be called before the first response message is sent.
      Parameters:
      marshallerForExport - the marshaller that will send export
      export - the object being sent
      logName - a description of export, for log messages
    • getMarshallers

      public List<ExchangeMarshaller> getMarshallers()
    • isClosed

      public boolean isClosed()
    • getStreamGeneratorFactory

      public BarrageMessageWriter.Factory getStreamGeneratorFactory()
    • getTicketRouter

      public TicketRouter getTicketRouter()
    • getSession

      public SessionState getSession()
    • onCancel

      public void onCancel()
    • onError

      public void onError(Throwable t)
      Specified by:
      onError in interface io.grpc.stub.StreamObserver<InputStream>
    • onCompleted

      public void onCompleted()
      Specified by:
      onCompleted in interface io.grpc.stub.StreamObserver<InputStream>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable