Package org.apache.juneau.console.views
Interface TerminalViewSource
- All Known Implementing Classes:
FileTerminalViewSource,TerminalViewLog
public interface TerminalViewSource
The read side of a terminal-view event stream.
Contract: events come back in ascending TerminalViewSource.UnknownTokenException; implementations are thread-safe. There is no tail or before: the
client model needs the events from the start, and an event stream is small next to a log.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThrown for an unknown or stale token; endpoints answer410 Gone . -
Method Summary
Modifier and TypeMethodDescriptionReturns a forward page of events with aseq greater than the token's position.
-
Method Details
-
page
Returns a forward page of events with aseq greater than the token's position.- Parameters:
after- Thenext token of the previous page, ornull for the start.max- The maximum number of events.- Returns:
- A forward page.
- Throws:
TerminalViewSource.UnknownTokenException- If the token is unknown or stale.
-