se.lth.cs.realtime.event
Interface RTEventBufferOutput
- All Known Implementing Classes:
- RTEventBuffer
- public interface RTEventBufferOutput
Methods for event buffer output. For documentation of the methods, refer
to the class RTEventBuffer
. When only the output side of such
a buffer is to be provided for some event source, or as a resource in a
monitor, a reference to an RTEventBufferOutput
object is
better to use to prevent calling the input methods of the buffer (by
accident). Note, however, in the case of buffer output from within a
monitor: when the buffer object also comprises a monitor, do not use
the doFetch
methods which are blocking (on buffer empty)
which will lock also the outer monitor (if not using the lock of the
buffer for its mutual exclusion, which is not recommended).
- See Also:
License
,
RTEventBuffer
fetch
public RTEvent fetch()
doFetch
public RTEvent doFetch()
tryFetch
public RTEvent tryFetch()
tryFetch
public RTEvent tryFetch(long timeout)