Class NotifierImpl<SUBJECT extends Notifier<SUBJECT,​MESSAGE>,​MESSAGE>

  • All Implemented Interfaces:
    Notifier<SUBJECT,​MESSAGE>

    public class NotifierImpl<SUBJECT extends Notifier<SUBJECT,​MESSAGE>,​MESSAGE>
    extends Object
    implements Notifier<SUBJECT,​MESSAGE>
    Example implementation of Notifier functionality. A NotifierImpl handles notifier functionality for some real Notifier (subject).

    It is safe to fire new events while a current one is executing. In that case the new message will be processed after processing the current one finished.

    Listeners can also be removed while a message is send/processed.

    As an example of how to use this class, have a look at ExperimentListener used by Experiments.

    Author:
    Torsten Hildebrandt
    See Also:
    Notifier, NotifierListener