public class LimitWriteOperations extends Object
| Constructor and Description |
|---|
LimitWriteOperations(IO.Writable io,
int maxOperations)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ISynchronizationPoint<IOException> |
flush()
Same as getLastPendingOperation but never return null (return an unblocked synchronization point instead).
|
AsyncWork<Integer,IOException> |
getLastPendingOperation()
Return the last pending operation, or null.
|
AsyncWork<Integer,IOException> |
write(ByteBuffer buffer)
Queue the buffer to write.
|
protected void |
writeDone(ByteBuffer buffer) |
public LimitWriteOperations(IO.Writable io, int maxOperations)
public AsyncWork<Integer,IOException> write(ByteBuffer buffer) throws IOException
buffer - the buffer to write.IOExceptionprotected void writeDone(ByteBuffer buffer)
public AsyncWork<Integer,IOException> getLastPendingOperation()
public ISynchronizationPoint<IOException> flush()
Copyright © 2018. All rights reserved.