java.lang.Object
io.helidon.common.socket.SocketWriter
io.helidon.common.socket.SmartSocketWriter
- All Implemented Interfaces:
DataWriter
A special socket write that starts async but may switch to sync mode if it
detects that the async queue size is below
QUEUE_SIZE_THRESHOLD
.
If it switches to sync mode, it shall never return back to async mode.-
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(BufferData buffer) Write buffer, may delay writing and may write on a different thread.void
write
(BufferData... buffers) Write buffers, may delay writing and may write on a different thread.
-
Method Details
-
write
Description copied from interface:DataWriter
Write buffers, may delay writing and may write on a different thread. This method also may combine multiple calls into a single write to the underlying transport.- Parameters:
buffers
- buffers to write
-
write
Description copied from interface:DataWriter
Write buffer, may delay writing and may write on a different thread. This method also may combine multiple calls into a single write to the underlying transport.- Parameters:
buffer
- buffer to write
-