Uses of Interface
java.lang.ProcessHandle
Packages that useProcessHandle
Package
Description
Provides classes that are fundamental to the design of the Java programming language.
Uses ofProcessHandle injava.lang
Subinterfaces with type arguments of typeProcessHandle injava.langModifier and TypeInterfaceDescriptioninterface
ProcessHandle identifies and provides control of native processes.Methods injava.lang that returnProcessHandleModifier and TypeMethodDescriptionstaticProcessHandle
ProcessHandle.current()
Returns a ProcessHandle for the current process.Process.toHandle()
Returns a ProcessHandle for the Process.Methods injava.lang that return types with arguments of typeProcessHandleModifier and TypeMethodDescriptionstaticStream
<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.staticOptional
<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.Methods injava.lang with parameters of typeProcessHandleModifier and TypeMethodDescriptionint
ProcessHandle.compareTo
(ProcessHandle other) Compares this ProcessHandle with the specified ProcessHandle for order.