public class FutureData extends FutureResponse
FutureResponse, such as converting the
received buffer to an object.BaseFuture.FutureTypecompleted, lock, reason, type| Constructor and Description |
|---|
FutureData(Message requestMessage,
boolean raw)
Creates the request message for raw data.
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.netty.buffer.ChannelBuffer |
getBuffer()
Returns the raw buffer or null if the answer was empty.
|
Object |
getObject()
Returns the object or null if the underlying buffer was raw or the answer
was empty.
|
void |
setResponse(Message responseMessage)
Gets called if a peer responds.
|
getRequest, getResponse, setFailed, setReplyTimeoutHandler, setResponseaddCancellation, addListener, await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, getFailedReason, getType, isCompleted, isFailed, isSuccess, notifyListerenrs, removeCancellation, removeListener, setCompletedAndNotifypublic FutureData(Message requestMessage, boolean raw)
requestMessage - The message that was sent to the remode peerpublic void setResponse(Message responseMessage)
FutureResponsesetResponse in class FutureResponsepublic org.jboss.netty.buffer.ChannelBuffer getBuffer()
public Object getObject()
Copyright © 2011. All Rights Reserved.