Interface TerminalNudgePublisher

All Known Implementing Classes:
TerminalNudges
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Receives a notice that a terminal's bytes have grown.

Sources such as MemoryTerminalSource and TerminalProcess call this after bytes are appended and once more when no further bytes will arrive. It is a hint only: a reader still fetches the bytes through TerminalSource.read(long, int).

Implementations must not block and must not throw; callers still guard against a throwing implementation.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    nudge(String terminalId, long end, boolean done)
    Reports that a terminal's bytes now end at an offset.
  • Method Details

    • nudge

      void nudge(String terminalId, long end, boolean done)
      Reports that a terminal's bytes now end at an offset.
      Parameters:
      terminalId - The terminal id.
      end - The offset one past the last byte appended so far.
      done - true if no more bytes will be appended.