public abstract class BaseProcessingUnit.EventLoopWorker extends BaseProcessingUnit.LoopWorker
| Constructor and Description |
|---|
EventLoopWorker(Processable processable) |
| Modifier and Type | Method and Description |
|---|---|
protected Event |
getInEvent() |
protected Event |
getLastEvent() |
abstract boolean |
processEvent(Event event)
Returns
true if the event should be put into the out queue. |
boolean |
runIteration() |
getProcessable, run, shouldContinueLooppublic EventLoopWorker(Processable processable)
protected Event getLastEvent()
protected Event getInEvent() throws InterruptedException
InterruptedExceptionpublic abstract boolean processEvent(Event event) throws InterruptedException
true if the event should be put into the out queue.event - the event.true if the event should be put into the out queue.InterruptedException - when the current thread has been interrupted.public boolean runIteration()
throws InterruptedException
runIteration in class BaseProcessingUnit.LoopWorkerInterruptedExceptionCopyright © 2016–2019 Softelnet. All rights reserved.