|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventPool
This indterface defines the methods needed to implement an EventPool
Method Summary | |
---|---|
BaseEvent |
checkoutEvent(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 |
---|
BaseEvent checkoutEvent(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 validvoid releaseEvent(BaseEvent event)
event
- the event we're releasing our lock onvoid cleanupLockedEvents()
void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |