|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This indterface defines the methods needed to implement an EventPool
Method Summary | |
BaseEvent |
checkoutEvent(java.lang.Class event)
check out an event from the EventPool. |
void |
cleanupLockedEvents()
Cleanup any locked events which weren't released (they should all be). |
void |
releaseEvent(BaseEvent event)
check the event back in, allowing someone else to have access to it. |
void |
shutdown()
Shutdown the event pool |
Method Detail |
public BaseEvent checkoutEvent(java.lang.Class event) throws NoAvailableEventsException, InvalidClassException
event
- the class of event we are interested in checking out
NoAvailableEventsException
- if there are no available events in the queue
InvalidClassException
- if the event class is not validpublic void releaseEvent(BaseEvent event)
event
- the event we're releasing our lock onpublic void cleanupLockedEvents()
public void shutdown()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |