Class Receptor

java.lang.Object
com.yahoo.messagebus.test.Receptor
All Implemented Interfaces:
MessageHandler, ReplyHandler

public class Receptor extends Object implements MessageHandler, ReplyHandler
Author:
Haavard Pettersen
  • Constructor Details

    • Receptor

      public Receptor()
  • Method Details

    • reset

      public void reset()
    • handleMessage

      public void handleMessage(Message msg)
      Description copied from interface: MessageHandler
      This function is called when a message arrives.
      Specified by:
      handleMessage in interface MessageHandler
      Parameters:
      msg - The message that arrived.
    • handleReply

      public void handleReply(Reply reply)
      Description copied from interface: ReplyHandler
      This function is called when a reply arrives.
      Specified by:
      handleReply in interface ReplyHandler
      Parameters:
      reply - The reply that arrived.
    • getMessage

      public Message getMessage(int seconds)
    • getReply

      public Reply getReply(int seconds)