public interface EventThread_ifc extends java.io.Closeable, InfoAppend
version
Modifier and Type | Method and Description |
---|---|
boolean |
isBusy()
Checks whether the thread is busy.
|
boolean |
isCurrentThread()
quest whether the current thread is equal to this thread.
|
boolean |
removeFromQueue(java.util.EventObject ev)
Removes this event from its queue if it is in the event queue.
|
boolean |
storeEvent(java.util.EventObject ev)
Adds an event to execute it in the thread of the implementor of this interface.
|
infoAppend
boolean storeEvent(java.util.EventObject ev)
EventWithDst
is used it has an aggregation to the implementor of this and ivokes this method
in its EventWithDst#sendEvent()
.
In that case this method should not be called by an application directly. It is only a rule to implement.
But this method should be used if another event type is used. Then the implementor should know what to do with the event.ev
- the Event to storeboolean removeFromQueue(java.util.EventObject ev)
EventWithDst
is found in the queue, it is designated with stateOfEvent = 'a'
This operation is thread safe. Either the event is found and removed, or it is not found because it is
either in execution yet or it is not queued. The event queue is a ConcurrentLinkedQueue
.ev
- The event which should be dequeuedboolean isBusy()
TimeOrder
waits for its finishing. If an execution remains in process because debugging, this method returns true.boolean isCurrentThread()