consumablequeueworker.java

来自「java开源的企业总线.xmlBlaster」· Java 代码 · 共 38 行

JAVA
38
字号
/*------------------------------------------------------------------------------Name:      ConsumableQueueWorker.javaProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE file------------------------------------------------------------------------------*/package org.xmlBlaster.engine.distributor.plugins;import java.util.logging.Logger;import java.util.logging.Level;/** * ConsumableQueueWorker processes the distribution of messages on  * topics which have a ConsumableQueue plugin defined. * This runs in its own thread, so when it is stared, the invoker  * thread can return without waiting for all messages to be processed. *  * @author <a href="mailto:michele@laghi.eu">Michele Laghi</a> */public class ConsumableQueueWorker implements Runnable {   private static Logger log;   private ConsumableQueuePlugin consumableQueuePlugin;   public ConsumableQueueWorker(Logger log_, ConsumableQueuePlugin consumableQueuePlugin) {      log = log_;      if (log.isLoggable(Level.FINER)) log.finer("constructor");      this.consumableQueuePlugin = consumableQueuePlugin;   }   public void run() {      if (log.isLoggable(Level.FINER)) log.finer("run");      this.consumableQueuePlugin.processHistoryQueue();   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?