public interface DeviceUpdateListener
VirtualCdj.addUpdateListener(DeviceUpdateListener). Whenever a device update is received,
received(DeviceUpdate) is invoked with it.| Modifier and Type | Method and Description |
|---|---|
void |
received(DeviceUpdate update)
Invoked whenever a device status update is received by
VirtualCdj. |
void received(DeviceUpdate update)
VirtualCdj. Currently the update will either be
a MixerStatus or a CdjStatus, but more varieties may be added as the protocol analysis deepens.
To reduce latency, device updates are delivered to listeners directly on the thread that is receiving them
from the network, so if you want to interact with user interface objects in this method, you need to use
javax.swing.SwingUtilities.invokeLater(Runnable)
to do so on the Event Dispatch Thread.
Even if you are not interacting with user interface objects, any code in this method
must finish quickly, or it will add latency for other listeners, and device updates will back up.
If you want to perform lengthy processing of any sort, do so on another thread.
update - the status update which has just arrivedCopyright © 2016 Deep Symmetry, LLC. All rights reserved.