eu.semaine.jms
Interface SEMAINEMessageAvailableListener

All Known Implementing Classes:
AgentMentalStateInterpreter, Component, DummyActionSelection, DummyAnalyser, DummyBMLActionProposer, DummyBMLRealiser, DummyBMLRealiserAndPlayer, DummyFeatureExtractor, DummyFML2BML, DummyFMLActionProposer, DummyInterpreter, DummyVisualFML2BML, EmotionInterpreter, FacialExpressionInterpreter, GenericTestComponent, MessageLogComponent, NonVerbalInterpreter, QueuingAudioPlayer, QueuingDummyBMLRealiser, QueuingDummyFML2BML, QueuingSpeechBMLRealiser, QueuingSpeechPreprocessor, SemaineAudioPlayer, SpeechBMLRealiser, SpeechPreprocessor, SystemManager, TestGui, TTSInputComponent, TurnTakingInterpreter, UserPresenceInterpreter, UtteranceActionProposer, UtteranceInterpreter, UtterancePreparationTestComponent

public interface SEMAINEMessageAvailableListener


Method Summary
 void messageAvailableFrom(Receiver receiver)
          This method is called when a SEMAINE message is received by a receiver, from the receiver's thread.
 

Method Detail

messageAvailableFrom

void messageAvailableFrom(Receiver receiver)
This method is called when a SEMAINE message is received by a receiver, from the receiver's thread. The method is expected to cause the listener to call (in this or another thread) the Receiver's Receiver.getMessage() method. The receiver will block until getMessage() has been called. The listener can decide whether to get the message immediately or to put the receiver in a queue until the listener is ready to process. For slow components, the second option avoids piling up messages; instead, they may be discarded by the JMS server if their time to live is exceeded.

Parameters:
receiver - the receiver that has a message available.