|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Worker
Common interface for developing worker classes to be used by the Listener class.
Worker instances receive notification of events that are dispatched from the an event queue.
Method Summary | |
---|---|
void |
destroy()
Worker specific cleanup can be performed here. |
void |
doWork(java.lang.Object event,
java.lang.String listener)
Worker specific functionality must be implemented here. |
Method Detail |
---|
void doWork(java.lang.Object event, java.lang.String listener)
Everytime a Listener instance removes an event from the event Queue it is presented to this method for processing. The specific Listener instance will only continue processing events after this method has completed.
event
- Object containing event.listener
- String containing the name of the listener that triggered
this method call.void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |