public class AsyncEventPump extends Object implements Runnable
Modifier and Type | Method and Description |
---|---|
void |
dispatchEvent(ManagerEvent event,
Integer requiredHandlingTime)
add a ManagerEvent to the queue, only if the queue is not full
|
void |
dispatchResponse(ManagerResponse response,
Integer requiredHandlingTime)
add a ManagerResponse to the queue, only if the queue is not full
|
void |
run() |
void |
stop()
call stop() to cause the AsyncEventPump to stop, it will first empty the
queue.
|
public void stop()
public void dispatchResponse(ManagerResponse response, Integer requiredHandlingTime)
response
- the response received by the readerrequiredHandlingTime
- the time that this event must be handled
within to not cause a back log of eventsManagerReader
public void dispatchEvent(ManagerEvent event, Integer requiredHandlingTime)
event
- the event received by the readerrequiredHandlingTime
- the time that this event must be handled
within to not cause a back log of eventsManagerReader
Copyright © 2004–2021. All rights reserved.