net.tomp2p.futures
Class FutureData
java.lang.Object
net.tomp2p.futures.BaseFutureImpl
net.tomp2p.futures.FutureResponse
net.tomp2p.futures.FutureData
- All Implemented Interfaces:
- BaseFuture, Cancellable
public class FutureData
- extends FutureResponse
|
Constructor Summary |
FutureData(Message requestMessage,
boolean raw)
Creates the request message for raw data. |
| Methods inherited from class net.tomp2p.futures.BaseFutureImpl |
addCancellation, addListener, await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, getFailedReason, getType, isCompleted, isFailed, isSuccess, notifyListerenrs, removeCancellation, removeListener, setCompletedAndNotify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FutureData
public FutureData(Message requestMessage,
boolean raw)
- Creates the request message for raw data. Note that the response might
have a null payload. This is ok since a response might be empty and only
send an ack that the message has arrived.
- Parameters:
requestMessage -
setResponse
public void setResponse(Message responseMessage)
- Description copied from class:
FutureResponse
- Gets called if a peer responds. Note that either this method or
responseFailed() is always called. This does not notify any listeners. The listeners gets notified if channel is closed
- Overrides:
setResponse in class FutureResponse
getBuffer
public org.jboss.netty.buffer.ChannelBuffer getBuffer()
getObject
public Object getObject()
Copyright © 2011. All Rights Reserved.