org.jdesktop.ws
[Java] Class BaseService.Event
java.lang.Object
org.jdesktop.ws.BaseService.Event
private static final class BaseService.Event
BaseService uses a smart implementation of publishing property change
events onto the EDT to avoid EDT flooding, which most certainly would
occur when transfering large files with all the progress notification
updates.
Events are stored in a concurrent data structure and then a single
invokeLater event occurs. When the EDT gets to handling the event, it
retrieves all events that have occurred in the queue and fires them
all off at once. It maintains both the order of the events and also
reduces the amount of invokeLater() calls by a substantial amount in
some cases.
event
private PropertyChangeEvent event
-
listener
private PropertyChangeListener listener
-
BaseService.Event
BaseService.Event(PropertyChangeListener listener, PropertyChangeEvent event)
-
Groovy Documentation