@Override
public void run() {
Logger.getLogger(RuleProcessors.class).info("Started RuleProcessors");
while(!this.isInterrupted()) {
GameEngineEvent msg;
try {
msg = incomingEvents.take();
} catch (InterruptedException e) {
Logger.getLogger(RuleProcessors.class).error("Interrupted while waiting for incoming event");
this.interrupt();
break;
}
if(msg != null) {
this.processEventsForRules(Collections.singletonList(msg));
} else {
Logger.getLogger(RuleProcessors.class).error("Received event on incoming queue but was null!");
}
}
Logger.getLogger(RuleProcessors.class).info("Ruleprocessors is shut down!");
}
RuleProcessors.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:Drones-Simulator
作者:
评论列表
文章目录