public class LimitWriteOperations extends Object
| Constructor and Description |
|---|
LimitWriteOperations(IO.Writable io,
int maxOperations)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AsyncWork<Integer,IOException> |
getLastPendingOperation()
Return the last pending operation, or null.
|
AsyncWork<Integer,IOException> |
write(ByteBuffer buffer)
Queue the buffer to write.
|
public LimitWriteOperations(IO.Writable io, int maxOperations)
public AsyncWork<Integer,IOException> write(ByteBuffer buffer) throws IOException
buffer - the buffer to write.IOExceptionpublic AsyncWork<Integer,IOException> getLastPendingOperation()
Copyright © 2017. All rights reserved.