Add buffer
to this SocketWritingQueue.
Add buffer
to this SocketWritingQueue.
If this SocketWritingQueue is closing or closed, the enqueue operation will be ignored.
This SocketWritingQueue will change position
in each of buffers
,
but will not change the content of these buffers
.
To prevent this behavior, please duplicate
these buffers
before enqueue.
Add buffers
to this SocketWritingQueue.
Add buffers
to this SocketWritingQueue.
If this SocketWritingQueue is closing or closed, the enqueue operation will be ignored.
This SocketWritingQueue will change position
in each of buffers
,
but will not change the content of these buffers
.
To prevent this behavior, please duplicate
these buffers
before enqueue.
强行关闭本SocketWritingQueue。
强行关闭本SocketWritingQueue。
优雅的关闭本SocketWritingQueue。
优雅的关闭本SocketWritingQueue。
如果本SocketWritingQueue队列中存在尚未发送的数据, 那么只有当这些数据全部交给socket发送后,socket才会真正被关闭。
如果多次调用shutDown,只有第一次调用有效,后面几次会被忽略。
写入Socket的缓冲数据队列。
本SocketWritingQueue保证线程安全,允许多个线程向这里提交要写入的数据。 enqueue提交的缓冲区将按提交顺序排队写入,而不会混合。