Package com.parctechnologies.eclipse
Interface QueueListener
-
public interface QueueListenerInterface for handlers of incoming data or data requests on queues. Any object which implements QueueListener can be attached to aFromEclipseQueueor aToEclipseQueueusing thesetListener()methods of those classes.If attached to a FromEclipseQueue, when ECLiPSe flushes the queue, the
dataAvailable()method is called with the flushed FromEclipseQueue as thesourceparameter.If attached to a ToEclipseQueue, when ECLiPSe tries to read data from that queue and it is empty, the
dataRequest()method is called with the ToEclipseQueue as thesourceparameter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddataAvailable(java.lang.Object source)Called with FromEclipseQueue assourcewhen the QueueListener is attached and ECLiPSe flushes the queue.voiddataRequest(java.lang.Object source)Called with ToEclipseQueue assourcewhen the QueueListener is attached and ECLiPSe tries to read data from the queue when it is empty.
-
-
-
Method Detail
-
dataAvailable
void dataAvailable(java.lang.Object source)
Called with FromEclipseQueue assourcewhen the QueueListener is attached and ECLiPSe flushes the queue. If used with an instance of RemoteEclipse, theresume()method should not be invoked duringdataAvailable().
-
dataRequest
void dataRequest(java.lang.Object source)
Called with ToEclipseQueue assourcewhen the QueueListener is attached and ECLiPSe tries to read data from the queue when it is empty. If used with an instance of RemoteEclipse, theresume()method should not be invoked duringdataRequest().
-
-