Package org.eclipse.lemminx.commons
Class ParentProcessWatcher
- java.lang.Object
-
- org.eclipse.lemminx.commons.ParentProcessWatcher
-
- All Implemented Interfaces:
Runnable,Function<org.eclipse.lsp4j.jsonrpc.MessageConsumer,org.eclipse.lsp4j.jsonrpc.MessageConsumer>
public final class ParentProcessWatcher extends Object implements Runnable, Function<org.eclipse.lsp4j.jsonrpc.MessageConsumer,org.eclipse.lsp4j.jsonrpc.MessageConsumer>
Watches the parent process PID and invokes exit if it is no longer available. This implementation waits for periods of inactivity to start querying the PIDs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceParentProcessWatcher.ProcessLanguageServer
-
Constructor Summary
Constructors Constructor Description ParentProcessWatcher(ParentProcessWatcher.ProcessLanguageServer server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.lsp4j.jsonrpc.MessageConsumerapply(org.eclipse.lsp4j.jsonrpc.MessageConsumer consumer)voidrun()
-
-
-
Constructor Detail
-
ParentProcessWatcher
public ParentProcessWatcher(ParentProcessWatcher.ProcessLanguageServer server)
-
-