public void write(ByteBuffer wbb) throws IOException { synchronized (mLock) { mWriteManager.write(wbb);
public void write(ByteBuffer buffer) throws IOException { synchronized (mWriteLock) { mWriteBuffers.add(buffer);    flush();
        public void write(ByteBuffer wbb) throws IOException {            synchronized (mLock) {                mWriteManager.write(wbb);            }        }