@Override
    public long write(ByteBuffer[] srcs, int offset, int length) throws IOException {
        return socketChannel.write(srcs, offset, length);
    }
Writes a sequence of bytes to this channel from the subsequence of the given buffers.

@param srcs The buffers from which bytes are to be retrieved
@param offset The offset within the buffer array of the first buffer from which bytes are to be retrieved; must be non-negative and no larger than srcs.length.
@param length - The maximum number of buffers to be accessed; must be non-negative and no larger than srcs.length - offset.
@return returns no.of bytes written , possibly zero.
@throws IOException If some other I/O error occurs
clients/src/main/java/org/apache/kafka/common/network/PlaintextTransportLayer.java