DESY ACOP Beans Home

com.cosylab.gui.adapters
Class AsynchronousDispatcher

java.lang.Object
  extended by com.cosylab.gui.displayers.DataSourceSupport
      extended by com.cosylab.gui.adapters.DataConsumerDispatcher
          extended by com.cosylab.gui.adapters.AsynchronousDispatcher
All Implemented Interfaces:
AsynchronousNumberConsumer, DataConsumer, DataSource, java.io.Serializable

public class AsynchronousDispatcher
extends DataConsumerDispatcher
implements AsynchronousNumberConsumer

AsynchronousDispatcher is implementation of AsynchronousNumberConsumer which delegates value updates to registered consumers.

Since:
Feb 14, 2004.
Version:
$Id: AsynchronousDispatcher.java,v 1.5 2008-04-22 12:31:02 jbobnar Exp $
Author:
Igor Kriznar
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.cosylab.gui.adapters.DataConsumerDispatcher
name
 
Fields inherited from class com.cosylab.gui.displayers.DataSourceSupport
types
 
Constructor Summary
AsynchronousDispatcher()
          Creates new dispatcher.
 
Method Summary
 void updateAcynchronously(UpdateRequest request)
          Calls asynchronous update on this data consumer.
 
Methods inherited from class com.cosylab.gui.adapters.DataConsumerDispatcher
getDataConsumer, getDefaultDataConsumer, getName, getSupportedCharacteristics, getSupportedConsumerTypes, setCharacteristics, updateDataState
 
Methods inherited from class com.cosylab.gui.displayers.DataSourceSupport
addConsumer, clear, clone, extractSupportedCharacteristics, getAcceptableConsumerTypes, getConsumers, removeAllConsumers, removeConsumer
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cosylab.gui.displayers.DataConsumer
getDataConsumer, getDefaultDataConsumer, getName, getSupportedCharacteristics, getSupportedConsumerTypes, setCharacteristics, updateDataState
 

Constructor Detail

AsynchronousDispatcher

public AsynchronousDispatcher()
Creates new dispatcher.

Method Detail

updateAcynchronously

public void updateAcynchronously(UpdateRequest request)
                          throws CommonException
Description copied from interface: AsynchronousNumberConsumer
Calls asynchronous update on this data consumer. Data consumer must return this call as soon as possible and inform UpdateRequestListener inside UpdateRequest about response.

Specified by:
updateAcynchronously in interface AsynchronousNumberConsumer
Parameters:
request - the update request, holds UpdateRequestlistener which asynchronously receives reponse
Throws:
CommonException


Copyright © 2010. All Rights Reserved.