Modifier and Type | Method and Description |
---|---|
JShell.Subscription |
JShell.onShutdown(Consumer<JShell> listener)
Register a callback to be called when this JShell instance terminates.
|
JShell.Subscription |
JShell.onSnippetEvent(Consumer<SnippetEvent> listener)
Register a callback to be called when the Status of a snippet changes.
|
Modifier and Type | Method and Description |
---|---|
void |
JShell.unsubscribe(JShell.Subscription token)
Cancel a callback subscription.
|
Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-ea+126