public abstract class FrameBytes extends FutureCallback<Void> implements Runnable
Callback.Empty<C>
Modifier and Type | Field and Description |
---|---|
protected AbstractWebSocketConnection |
connection |
protected Frame |
frame |
protected Scheduler.Task |
task |
Modifier | Constructor and Description |
---|---|
protected |
FrameBytes(AbstractWebSocketConnection connection,
Frame frame) |
Modifier and Type | Method and Description |
---|---|
void |
completed(Void v)
Callback invoked when the operation completes.
|
void |
failed(Void v,
Throwable x)
Callback invoked when the operation fails.
|
abstract ByteBuffer |
getByteBuffer() |
void |
run() |
String |
toString() |
cancel, get, get, isCancelled, isDone, rethrow
protected final AbstractWebSocketConnection connection
protected final Frame frame
protected volatile Scheduler.Task task
protected FrameBytes(AbstractWebSocketConnection connection, Frame frame)
public void completed(Void v)
Callback
Callback invoked when the operation completes.
completed
in interface Callback<Void>
completed
in class FutureCallback<Void>
v
- the contextCallback.failed(Object, Throwable)
public void failed(Void v, Throwable x)
Callback
Callback invoked when the operation fails.
public abstract ByteBuffer getByteBuffer()
public String toString()
toString
in class FutureCallback<Void>
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.