Package org.eclipse.lsp4j.jsonrpc
Class StandardLauncher<T>
- java.lang.Object
-
- org.eclipse.lsp4j.jsonrpc.StandardLauncher<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.lsp4j.jsonrpc.Launcher
Launcher.Builder<T>
-
-
Constructor Summary
Constructors Constructor Description StandardLauncher(java.util.concurrent.ExecutorService execService2, T remoteProxy2, RemoteEndpoint remoteEndpoint2, ConcurrentMessageProcessor msgProcessor)StandardLauncher(StreamMessageProducer reader, MessageConsumer messageConsumer, java.util.concurrent.ExecutorService execService, T remoteProxy, RemoteEndpoint remoteEndpoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteEndpointgetRemoteEndpoint()Returns the remote endpoint.TgetRemoteProxy()Returns the proxy instance that implements the remote service interfaces.java.util.concurrent.Future<java.lang.Void>startListening()Start a thread that listens to the input stream.
-
-
-
Constructor Detail
-
StandardLauncher
public StandardLauncher(StreamMessageProducer reader, MessageConsumer messageConsumer, java.util.concurrent.ExecutorService execService, T remoteProxy, RemoteEndpoint remoteEndpoint)
-
StandardLauncher
public StandardLauncher(java.util.concurrent.ExecutorService execService2, T remoteProxy2, RemoteEndpoint remoteEndpoint2, ConcurrentMessageProcessor msgProcessor)
-
-
Method Detail
-
startListening
public java.util.concurrent.Future<java.lang.Void> startListening()
Description copied from interface:LauncherStart a thread that listens to the input stream. The thread terminates when the stream is closed.- Specified by:
startListeningin interfaceLauncher<T>- Returns:
- a future that returns
nullwhen the listener thread is terminated
-
getRemoteProxy
public T getRemoteProxy()
Description copied from interface:LauncherReturns the proxy instance that implements the remote service interfaces.- Specified by:
getRemoteProxyin interfaceLauncher<T>
-
getRemoteEndpoint
public RemoteEndpoint getRemoteEndpoint()
Description copied from interface:LauncherReturns the remote endpoint. Use this one to send genericrequestornotifymethods to the remote services.- Specified by:
getRemoteEndpointin interfaceLauncher<T>
-
-