|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dfdaemon.il2.core.event.BlockingQueueEventProcessor
public class BlockingQueueEventProcessor
| Constructor Summary | |
|---|---|
BlockingQueueEventProcessor()
Constructs a new BlockingQueueEventProcessor. |
|
BlockingQueueEventProcessor(int size)
Constructs a new BlockingQueueEventProcessor. |
|
| Method Summary | |
|---|---|
void |
addEventConsumer(EventConsumer consumer)
Add EventConsumer ... |
void |
afterRun()
|
void |
inject(Event event)
Method inject ... |
void |
preRun()
|
void |
removeEventConsumer(EventConsumer consumer)
Remove EventConsumer ... |
void |
run()
|
boolean |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockingQueueEventProcessor()
public BlockingQueueEventProcessor(int size)
size - maximum of stored events| Method Detail |
|---|
public void inject(Event event)
throws InterruptedException
inject in interface EventProcessorevent - of type Event
InterruptedException - whenpublic void addEventConsumer(EventConsumer consumer)
addEventConsumer in interface EventProcessorconsumer - of type EventConsumerpublic void removeEventConsumer(EventConsumer consumer)
removeEventConsumer in interface EventProcessorconsumer - of type EventConsumer
public void preRun()
throws Exception
preRun in interface CoreTaskException
public void run()
throws Exception
run in interface CoreTaskExceptionpublic void afterRun()
afterRun in interface CoreTaskpublic boolean stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||