Groovy Documentation

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.


Field Summary
private PropertyChangeEvent event

private PropertyChangeListener listener

 
Constructor Summary
BaseService.Event(PropertyChangeListener listener, PropertyChangeEvent event)

 
Method Summary
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

event

private PropertyChangeEvent event


listener

private PropertyChangeListener listener


 
Constructor Detail

BaseService.Event

BaseService.Event(PropertyChangeListener listener, PropertyChangeEvent event)


 

Groovy Documentation