Uses of Interface
java.lang.ProcessHandle
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
-
Uses of ProcessHandle in java.lang
Modifier and TypeMethodDescriptionstatic ProcessHandle
ProcessHandle.current()
Returns a ProcessHandle for the current process.Process.toHandle()
Returns a ProcessHandle for the Process.Modifier and TypeMethodDescriptionstatic Stream<ProcessHandle>
ProcessHandle.allProcesses()
Returns a snapshot of all processes visible to the current process.Process.children()
Returns a snapshot of the direct children of the process.ProcessHandle.children()
Returns a snapshot of the current direct children of the process.Process.descendants()
Returns a snapshot of the descendants of the process.ProcessHandle.descendants()
Returns a snapshot of the descendants of the process.static Optional<ProcessHandle>
ProcessHandle.of
(long pid) Returns anOptional<ProcessHandle>
for an existing native process.ProcessHandle.onExit()
Returns aCompletableFuture<ProcessHandle>
for the termination of the process.ProcessHandle.parent()
Returns anOptional<ProcessHandle>
for the parent process.Modifier and TypeMethodDescriptionint
ProcessHandle.compareTo
(ProcessHandle other) Compares this ProcessHandle with the specified ProcessHandle for order.