ch.epfl.lsr.apex.connection
Class APEXReplyListener

java.lang.Object
  extended bych.epfl.lsr.apex.connection.APEXReplyListener
All Implemented Interfaces:
Runnable

public class APEXReplyListener
extends Object
implements Runnable

Since the BEEP reply offers no explicit listener, a this APEXReplyListener takes on this role: if the standalone thread receives a reply, it calls the handleReply method of the correspondant connection.

Author:
Marc Stoecklin
See Also:
Reply, APEXConnection.handleReply(Message, APEXMessage)

Field Summary
(package private)  APEXConnection connection
           
(package private)  APEXMessage message
           
(package private)  Reply reply
           
 
Constructor Summary
APEXReplyListener(Reply reply, APEXMessage message, APEXConnection connection)
          Instantiates a new APEXReplyListener for the specified reply, message, and call-back class connection.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reply

Reply reply

message

APEXMessage message

connection

APEXConnection connection
Constructor Detail

APEXReplyListener

public APEXReplyListener(Reply reply,
                         APEXMessage message,
                         APEXConnection connection)
Instantiates a new APEXReplyListener for the specified reply, message, and call-back class connection.

Parameters:
reply - The reply to wait for
message - The message
connection - The connection to call-back
Method Detail

run

public void run()
Specified by:
run in interface Runnable