Class ExportedTableUpdateListener

java.lang.Object
io.deephaven.server.table.ExportedTableUpdateListener
All Implemented Interfaces:
io.grpc.stub.StreamObserver<io.deephaven.proto.backplane.grpc.ExportNotification>

public class ExportedTableUpdateListener extends Object implements io.grpc.stub.StreamObserver<io.deephaven.proto.backplane.grpc.ExportNotification>
Manage the lifecycle of exports that are Tables.

Initially we receive a run of exports from the session state. This allows us to timely notify the observer of existing table sizes for both static tables and tables that won't tick frequently. When the run is complete we are sent a notification for exportId == 0 (which is otherwise an invalid export id).

  • Constructor Details

    • ExportedTableUpdateListener

      @AssistedInject public ExportedTableUpdateListener(@Assisted SessionState session, @Assisted io.grpc.stub.StreamObserver<io.deephaven.proto.backplane.grpc.ExportedTableUpdateMessage> responseObserver, SessionService.ErrorTransformer errorTransformer)
  • Method Details

    • onNext

      public void onNext(io.deephaven.proto.backplane.grpc.ExportNotification notification)
      Process the lifecycle update of an export from the session.
      Specified by:
      onNext in interface io.grpc.stub.StreamObserver<io.deephaven.proto.backplane.grpc.ExportNotification>
      Parameters:
      notification - the export state change notification
    • onError

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

      public void onCompleted()
      Specified by:
      onCompleted in interface io.grpc.stub.StreamObserver<io.deephaven.proto.backplane.grpc.ExportNotification>