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 MessageConsumers from
MessageProducers.| 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.
|
messageReceivedboolean isStopped()
stop() has been called.boolean stop()
MessageProducer
do not send any more Messages here.isStopped().Copyright © 2015. All rights reserved.