net.tomp2p.rpc
Class RequestHandlerTCP

java.lang.Object
  extended by net.tomp2p.rpc.RequestHandlerTCP

public class RequestHandlerTCP
extends Object

Is able to send messages (as a request) and processes incoming replies.

Author:
Thomas Bocek

Constructor Summary
RequestHandlerTCP(FutureResponse futureResponse, PeerBean peerBean, ConnectionBean connectionBean, Message message)
           
RequestHandlerTCP(PeerBean peerBean, ConnectionBean connectionBean, Message message)
           
 
Method Summary
 FutureResponse fireAndForgetTCP()
           
 FutureResponse getFutureResponse()
           
protected  PeerMap getPeerMap()
           
 void messageReceived(Message message)
           
 FutureResponse sendTCP()
           
 FutureResponse sendTCP(String channelName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.