Interface BarrageTable.ViewportChangedCallback

Enclosing class:
BarrageTable

public static interface BarrageTable.ViewportChangedCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onError(@NotNull Throwable t)
    Called when there is an unexpected error.
    boolean
    viewportChanged(@Nullable RowSet rowSet, @Nullable BitSet columns, boolean reverse)
    Called when the viewport has changed.
  • Method Details

    • viewportChanged

      boolean viewportChanged(@Nullable @Nullable RowSet rowSet, @Nullable @Nullable BitSet columns, boolean reverse)
      Called when the viewport has changed. Note that the server may send many viewport changes for a single request; as the server may choose to expand the viewport slowly to avoid update-graph lock contention.
      Parameters:
      rowSet - the new position space viewport - is null if the server is now respecting a full subscription
      columns - the columns that are included in the viewport - is null if all columns are subscribed
      reverse - whether the viewport is reversed - a reversed viewport
      Returns:
      true to continue to receive viewport changes, false to stop receiving viewport changes
    • onError

      void onError(@NotNull @NotNull Throwable t)
      Called when there is an unexpected error. Both remote and local failures will be reported. Once a failure occurs, this barrage table will stop receiving and processing updates from the remote server.
      Parameters:
      t - the error