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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMessage(int seconds) getReply(int seconds) voidhandleMessage(Message msg) This function is called when a message arrives.voidhandleReply(Reply reply) This function is called when a reply arrives.voidreset()
-
Constructor Details
-
Receptor
public Receptor()
-
-
Method Details
-
reset
public void reset() -
handleMessage
Description copied from interface:MessageHandlerThis function is called when a message arrives.- Specified by:
handleMessagein interfaceMessageHandler- Parameters:
msg- The message that arrived.
-
handleReply
Description copied from interface:ReplyHandlerThis function is called when a reply arrives.- Specified by:
handleReplyin interfaceReplyHandler- Parameters:
reply- The reply that arrived.
-
getMessage
-
getReply
-