- Enclosing class:
- WriteFlusher
private static class WriteFlusher.CompletingState
extends WriteFlusher.State
In CompletingState WriteFlusher is flushing buffers that have not been fully written in write(). If write()
didn't flush all buffers in one go, it'll switch the State to PendingState. completeWrite() will then switch to
this state and try to flush the remaining buffers.