Package org.eclipse.lsp4j.jsonrpc
Interface MessageProducer
-
- All Known Implementing Classes:
StreamMessageProducer
public interface MessageProducer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidlisten(MessageConsumer messageConsumer)Listen to a message source and forward all messages to the given consumer.
-
-
-
Method Detail
-
listen
void listen(MessageConsumer messageConsumer) throws JsonRpcException
Listen to a message source and forward all messages to the given consumer. Typically this method blocks until the message source is unable to deliver more messages.- Throws:
JsonRpcException- when accessing the JSON-RPC communication channel fails
-
-