Callback.Adapter, Callback.NonBlocking
Constructor and Description |
---|
ByteBufferCallback(ByteBufferPool byteBufferPool,
ByteBuffer buffer,
Callback callback) |
Modifier and Type | Method and Description |
---|---|
void |
failed(Throwable x)
Callback invoked when the operation fails.
|
ByteBuffer |
getByteBuffer() |
boolean |
isNonBlocking() |
void |
succeeded()
Callback invoked when the operation completes.
|
public ByteBufferCallback(ByteBufferPool byteBufferPool, ByteBuffer buffer, Callback callback)
public boolean isNonBlocking()
isNonBlocking
in interface Callback
public ByteBuffer getByteBuffer()
public void succeeded()
Callback
Callback invoked when the operation completes.
succeeded
in interface Callback
Callback.failed(Throwable)
Copyright © 1995-2016 Webtide. All Rights Reserved.