public interface QueueListener
FromEclipseQueue
or a ToEclipseQueue
using the
setListener()
methods of those classes.
If attached to a FromEclipseQueue, when ECLiPSe
flushes the queue,
the dataAvailable()
method is called with the flushed FromEclipseQueue as the
source
parameter.
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 the
source
parameter.
Modifier and Type | Method and Description |
---|---|
void |
dataAvailable(java.lang.Object source)
Called with FromEclipseQueue as
source when the
QueueListener is attached and ECLiPSe flushes the queue. |
void |
dataRequest(java.lang.Object source)
Called with ToEclipseQueue as
source when the
QueueListener is attached and ECLiPSe tries to read data from
the queue when it is empty. |
void dataAvailable(java.lang.Object source)
source
when the
QueueListener is attached and ECLiPSe flushes the queue. If used
with an instance of RemoteEclipse, the resume()
method should not be invoked during dataAvailable()
.void dataRequest(java.lang.Object source)
source
when the
QueueListener is attached and ECLiPSe tries to read data from
the queue when it is empty. If used
with an instance of RemoteEclipse, the resume()
method should not be invoked during dataRequest()
.