Uses of Class
jdk.jshell.JShell.Subscription
Package
Description
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL),
which interactively evaluate "snippets" of Java programming language code.
-
Uses of JShell.Subscription in jdk.jshell
Modifier and TypeMethodDescriptionJShell.onShutdown
(Consumer<JShell> listener) Register a callback to be called when this JShell instance terminates.JShell.onSnippetEvent
(Consumer<SnippetEvent> listener) Register a callback to be called when the Status of a snippet changes.Modifier and TypeMethodDescriptionvoid
JShell.unsubscribe
(JShell.Subscription token) Cancel a callback subscription.