Package io.deephaven.server.table
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).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionExportedTableUpdateListener(SessionState session, io.grpc.stub.StreamObserver<io.deephaven.proto.backplane.grpc.ExportedTableUpdateMessage> responseObserver, SessionService.ErrorTransformer errorTransformer) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidonNext(io.deephaven.proto.backplane.grpc.ExportNotification notification) Process the lifecycle update of an export from the session.
-
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:
onNextin interfaceio.grpc.stub.StreamObserver<io.deephaven.proto.backplane.grpc.ExportNotification>- Parameters:
notification- the export state change notification
-
onError
- Specified by:
onErrorin interfaceio.grpc.stub.StreamObserver<io.deephaven.proto.backplane.grpc.ExportNotification>
-
onCompleted
public void onCompleted()- Specified by:
onCompletedin interfaceio.grpc.stub.StreamObserver<io.deephaven.proto.backplane.grpc.ExportNotification>
-