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 Callbackpublic ByteBuffer getByteBuffer()
public void succeeded()
CallbackCallback invoked when the operation completes.
succeeded in interface CallbackCallback.failed(Throwable)Copyright © 1995–2016 Mort Bay Consulting. All rights reserved.