public abstract class BaseProcessingUnit.EventLoopWorker extends BaseProcessingUnit.LoopWorker
| Constructor and Description |
|---|
EventLoopWorker(org.openksavi.sponge.util.Processable processable) |
| Modifier and Type | Method and Description |
|---|---|
protected org.openksavi.sponge.event.Event |
getInEvent() |
protected org.openksavi.sponge.event.Event |
getLastEvent() |
abstract boolean |
processEvent(org.openksavi.sponge.event.Event event)
Returns
true if the event should be put into the out queue. |
boolean |
runIteration() |
getProcessable, run, shouldContinueLooppublic EventLoopWorker(org.openksavi.sponge.util.Processable processable)
protected org.openksavi.sponge.event.Event getLastEvent()
protected org.openksavi.sponge.event.Event getInEvent()
throws InterruptedException
InterruptedExceptionpublic abstract boolean processEvent(org.openksavi.sponge.event.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–2017 Softelnet. All rights reserved.