P
- The source that they expect such notifications from.public interface MessageConsumer<P extends MessageProducer<P>> extends MessageListener<P>
Message
appears in the log.
Users shouldn't implement this interface. Instead, they should implement
MessageListener
and obtain their MessageConsumer
s from
MessageProducer
s.Modifier and Type | Method and Description |
---|---|
boolean |
isStopped()
Whether or not
stop() has been called. |
boolean |
stop()
This consumer will no longer receive any messages.
|
messageReceived
boolean isStopped()
stop()
has been called.boolean stop()
MessageProducer
do not send any more Message
s here.isStopped()
.Copyright © 2014. All rights reserved.