com.kenmccrary.jtella
Class MessageReceiverAdapter

java.lang.Object
  |
  +--com.kenmccrary.jtella.MessageReceiverAdapter

public abstract class MessageReceiverAdapter
extends java.lang.Object
implements MessageReceiver

An adapter for the MessageReceiver, provides empty implementations of message receive methods


Constructor Summary
MessageReceiverAdapter()
           
 
Method Summary
 void receiveSearch(SearchMessage searchMessage)
          Implement to receive a query message from the network, this will be called for every query and subsequently should be implement efficiently, the default implementation does nothing
 void receiveSearchReply(SearchReplyMessage searchReplyMessage)
          Implement to receive a message reply, the default implementation does nothing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageReceiverAdapter

public MessageReceiverAdapter()
Method Detail

receiveSearchReply

public void receiveSearchReply(SearchReplyMessage searchReplyMessage)
Implement to receive a message reply, the default implementation does nothing
Specified by:
receiveSearchReply in interface MessageReceiver
Parameters:
searchResult - search reply

receiveSearch

public void receiveSearch(SearchMessage searchMessage)
Implement to receive a query message from the network, this will be called for every query and subsequently should be implement efficiently, the default implementation does nothing
Specified by:
receiveSearch in interface MessageReceiver