@FunctionalInterface public interface WriteListener
This is primarily useful when publishing with an off-heap ByteBuffer: the
callback tells the caller when the buffer is no longer in use and can be safely released.
This only applies when using Netty as the IO layer and is unnecessary when using the blocking IO layer.
Threading: the callback may be invoked on the Netty event loop thread. Implementations must not perform blocking operations.
This API is experimental and is susceptible to change at any time.
| Modifier and Type | Method and Description |
|---|---|
void |
done(boolean success,
Throwable cause)
Called when the write operation completes.
|
void done(boolean success,
Throwable cause)
success - true if the data was written to the socket successfullycause - the exception if the write failed, null on successCopyright © 2026 Broadcom Inc. and its subsidiaries.. All rights reserved.