Callback.Adapter
Constructor and Description |
---|
Generator.Result(ByteBufferPool byteBufferPool,
Callback callback) |
Modifier and Type | Method and Description |
---|---|
Generator.Result |
append(ByteBuffer buffer,
boolean recycle) |
void |
failed(Throwable x)
Callback invoked when the operation fails.
|
ByteBuffer[] |
getByteBuffers() |
Generator.Result |
join(Generator.Result that) |
protected void |
recycle() |
void |
succeeded()
Callback invoked when the operation completes.
|
public Generator.Result(ByteBufferPool byteBufferPool, Callback callback)
public Generator.Result append(ByteBuffer buffer, boolean recycle)
public Generator.Result join(Generator.Result that)
public ByteBuffer[] getByteBuffers()
public void succeeded()
Callback
Callback invoked when the operation completes.
succeeded
in interface Callback
Callback.failed(Throwable)
public void failed(Throwable x)
Callback
Callback invoked when the operation fails.
protected void recycle()
Copyright © 1995-2015 Webtide. All Rights Reserved.