net.tomp2p.rpc
Class RequestHandlerTCP
java.lang.Object
net.tomp2p.rpc.RequestHandlerTCP
public class RequestHandlerTCP
- extends Object
Is able to send messages (as a request) and processes incoming replies.
- Author:
- Thomas Bocek
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestHandlerTCP
public RequestHandlerTCP(PeerBean peerBean,
ConnectionBean connectionBean,
Message message)
RequestHandlerTCP
public RequestHandlerTCP(FutureResponse futureResponse,
PeerBean peerBean,
ConnectionBean connectionBean,
Message message)
- Parameters:
objectHolder - the bean representing the node this handler belongs
to
getFutureResponse
public FutureResponse getFutureResponse()
sendTCP
public FutureResponse sendTCP()
sendTCP
public FutureResponse sendTCP(String channelName)
fireAndForgetTCP
public FutureResponse fireAndForgetTCP()
getPeerMap
protected PeerMap getPeerMap()
messageReceived
public void messageReceived(Message message)
throws PeerException
- Throws:
PeerException
Copyright © 2011. All Rights Reserved.