|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IEventToken
Define methods need to manage events processing.
| Method Summary | |
|---|---|
void |
allocate()
Allocate a new thread to process this event. |
boolean |
join(EventPriority priority,
long timeout)
Wait for the event to be process. |
boolean |
join(EventPriority priority,
long timeout,
boolean kill)
Wait for the event to be process. |
boolean |
join(long timeout)
Wait for the event to be process. |
boolean |
join(long timeout,
boolean kill)
Wait for the event to be process. |
void |
terminate()
Terminate the event processing. |
| Method Detail |
|---|
void terminate()
void allocate()
boolean join(long timeout)
throws java.lang.InterruptedException
timeout - How long to wait for the event to be process.
java.lang.InterruptedException - If the thread has been interrupted.
boolean join(long timeout,
boolean kill)
throws java.lang.InterruptedException
timeout - How long to wait for the event to be process.kill - If true, kill the event processing if it not terminated before timeout.
java.lang.InterruptedException - If the thread has been interrupted.
boolean join(EventPriority priority,
long timeout)
throws java.lang.InterruptedException
priority - Only wait for the specified priority to be process.timeout - How long to wait for the event to be process.
java.lang.InterruptedException - If the thread has been interrupted.
boolean join(EventPriority priority,
long timeout,
boolean kill)
throws java.lang.InterruptedException
priority - Only wait for the specified priority to be process.timeout - How long to wait for the event to be process.kill - If true, kill the event processing if it not terminated before timeout.
java.lang.InterruptedException - If the thread has been interrupted.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||