use of org.apache.servicecomb.foundation.vertx.tcp.TcpOutputStream in project incubator-servicecomb-java-chassis by apache.
the class TcpClientConnection method writeToBufferQueue.
private boolean writeToBufferQueue(AbstractTcpClientPackage tcpClientPackage) {
// just optimize for main scenes
if (Status.WORKING.equals(status)) {
// encode in sender thread
try (TcpOutputStream os = tcpClientPackage.createStream()) {
write(os.getByteBuf());
tcpClientPackage.finishWriteToBuffer();
}
return true;
}
return false;
}
Aggregations