Package jmri.util

Class PropertyChangeEventQueue

  • @ThreadSafe
    public class PropertyChangeEventQueue
    extends Object
    Gathers PropertyChangeEvents that might occur in overlapping threads and at overlapping times, presenting them as requested.

    Listeners are installed when the object is constructed. dispose() detaches those listeners, after which the object should not be used. It is not an error to call dispose() multiple times.

    Although this could be more generic than NamedBean, there's no single interface that specifies "can call addPropertyChangeListener(..)".