Package com.yahoo.messagebus.test
Class Receptor
java.lang.Object
com.yahoo.messagebus.test.Receptor
- All Implemented Interfaces:
MessageHandler
,ReplyHandler
- Author:
- Haavard Pettersen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMessage
(int seconds) getReply
(int seconds) void
handleMessage
(Message msg) This function is called when a message arrives.void
handleReply
(Reply reply) This function is called when a reply arrives.void
reset()
-
Constructor Details
-
Receptor
public Receptor()
-
-
Method Details
-
reset
public void reset() -
handleMessage
Description copied from interface:MessageHandler
This function is called when a message arrives.- Specified by:
handleMessage
in interfaceMessageHandler
- Parameters:
msg
- The message that arrived.
-
handleReply
Description copied from interface:ReplyHandler
This function is called when a reply arrives.- Specified by:
handleReply
in interfaceReplyHandler
- Parameters:
reply
- The reply that arrived.
-
getMessage
-
getReply
-