Package com.yahoo.messagebus.test
Class QueueAdapter
java.lang.Object
com.yahoo.messagebus.test.QueueAdapter
- All Implemented Interfaces:
MessageHandler,ReplyHandler
- Author:
- Haavard Pettersen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondequeue()voidhandleMessage(Message message) This function is called when a message arrives.voidhandleReply(Reply reply) This function is called when a reply arrives.booleanisEmpty()intsize()booleanwaitSize(int size, int seconds)
-
Constructor Details
-
QueueAdapter
public QueueAdapter()
-
-
Method Details
-
handleMessage
Description copied from interface:MessageHandlerThis function is called when a message arrives.- Specified by:
handleMessagein interfaceMessageHandler- Parameters:
message- 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.
-
dequeue
-
isEmpty
public boolean isEmpty() -
size
public int size() -
waitSize
public boolean waitSize(int size, int seconds)
-