|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The AbleEventQueueProcessor interface provides a way for the
AbleEventQueue
to hand off processing of timer
and asynchronous AbleEvents. It must be implemented by all objects
wishing to interface with the AbleEventQueue object.
Method Summary | |
---|---|
AbleLogger |
getLogger()
Returns a message logger object from the event queue's container. |
int |
getState()
Returns the state of the event queue's container. |
void |
processAbleEvent(AbleEvent theAbleEvent)
Processes an Able event synchronously; that is, on the same thread as the caller. |
void |
processNoEventProcessingEnabledSituation()
Processes the situation where neither timer nor Able event processing is enabled in the event queue, but the event queue's asynchronous thread of control has been started. |
void |
processTimerEvent()
Processes a timer expiration event synchronously; that is, on the same thread as the caller. |
void |
setState(int theState)
Sets the state of the event queue's container. |
Method Detail |
public void processAbleEvent(AbleEvent theAbleEvent) throws AbleException
This method is called by the AbleEventQueue when an event is removed from the queue for asynchronous processing. Note that this method also can be called directly from the handleAbleEvent() method described in the AbleEventListener interface when that method is given a synchronous event to handle.
theAbleEvent
- The event to process.AbleException
- If an error occurs.public void processTimerEvent() throws AbleException
This method is called by an AbleEventQueue when the queue's sleep timer goes off.
AbleException
- If an error occurs.public void processNoEventProcessingEnabledSituation() throws AbleException
This method is called by an AbleEventQueue when the queue is neither enabled for timer processing nor Able event processing. When neither type of processing is enabled, the queue is in a tight processing loop, consuming CPU cycles. This method is called so that the event queue's container can do something about the situation or perform some other type of asynchronous processing.
AbleException
- If an error occurs.public void setState(int theState) throws AbleException
This method is called by an AbleEventQueue when the queue's run time loop changes state; for example, from Waiting to Active.
theState
- An AbleState
value.
AbleException
- If an error occurs.public int getState() throws AbleException
This method is called by an AbleEventQueue when the queue needs to interrogate the state of its container.
AbleState
value.AbleException
- If an error occurs.public AbleLogger getLogger() throws AbleException
AbleException
- If an error occurs.
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |