net.sf.mmm.util.event.base
Class AbstractSynchronizedEventSource<E extends Event,L extends EventListener<E>>
java.lang.Object
net.sf.mmm.util.component.base.AbstractComponent
net.sf.mmm.util.component.base.AbstractLoggableComponent
net.sf.mmm.util.event.base.AbstractEventSource<E,L>
net.sf.mmm.util.event.base.AbstractSynchronizedEventSource<E,L>
- Type Parameters:
E - is the templated type of the events to send.L - is the templated type of the listeners that can be
registered here and that will
receive the sent events.
- All Implemented Interfaces:
- EventSource<E,L>
- Direct Known Subclasses:
- AbstractMultiThreadedEventSource
public abstract class AbstractSynchronizedEventSource<E extends Event,L extends EventListener<E>>
- extends AbstractEventSource<E,L>
This class extends AbstractEventSource with the ability of
synchronization and therefore is thread-safe.
It uses a ConcurrentLinkedQueue and therefore
allows adding or
removing of listeners during event-handling.
- Since:
- 1.0.1
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSynchronizedEventSource
public AbstractSynchronizedEventSource()
- The constructor.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.