在 TcpTransport 中
protected void doRun() throws IOException { try { Object command = readCommand(); doConsume(command); } catch (SocketTimeoutException e) { } catch (InterruptedIOException e) { } }
等待 message 并消费 message
来源:oschina
链接:https://my.oschina.net/bxnet/blog/4267287