Package org.serviceconnector.util

Examples of org.serviceconnector.util.NamedPriorityThreadFactory


  public static void init() {
    synchronized (AppContext.communicatorsLock) {
      ConnectionFactory.init();
      if (AppContext.otiScheduler == null) {
        // set up new scheduler with high priority threads
        AppContext.otiScheduler = new ScheduledThreadPoolExecutor(1, new NamedPriorityThreadFactory("OTI",
            Thread.MAX_PRIORITY));
      }
      if (AppContext.eci_cri_Scheduler == null) {
        // set up new scheduler with high priority threads
        AppContext.eci_cri_Scheduler = new ScheduledThreadPoolExecutor(1, new NamedPriorityThreadFactory("ECI_CRI",
            Thread.MAX_PRIORITY));
      }
      if (AppContext.threadPool == null) {
        AppContext.threadPool = Executors.newCachedThreadPool(new NamedPriorityThreadFactory("SC_WORKER"));
      }
    }
  }
View Full Code Here


  /**
   * Instantiates a new subscription registry.
   */
  public SubscriptionRegistry() {
    this.subscriptionScheduler = new ScheduledThreadPoolExecutor(1, new NamedPriorityThreadFactory("SubscriptionTimeout"));
  }
View Full Code Here

   * Instantiates a new PublishMessageQueue.
   */
  public PublishMessageQueue() {
    this.dataQueue = new LinkedQueue<E>();
    this.pointerMap = new ConcurrentHashMap<String, TimeAwareDataPointer>();
    this.timeoutScheduler = new ScheduledThreadPoolExecutor(5, new NamedPriorityThreadFactory("CRPTimeout"));
  }
View Full Code Here

  /**
   * Instantiates a SessionRegistry.
   */
  public SessionRegistry() {
    this.sessionScheduler = new ScheduledThreadPoolExecutor(1, new NamedPriorityThreadFactory("SessionTimeout"));
  }
View Full Code Here

  public static void init() {
    synchronized (AppContext.communicatorsLock) {
      ConnectionFactory.init();
      if (AppContext.otiScheduler == null) {
        // set up new scheduler with high priority threads
        AppContext.otiScheduler = new ScheduledThreadPoolExecutor(1, new NamedPriorityThreadFactory("OTI",
            Thread.MAX_PRIORITY));
      }
      if (AppContext.eci_cri_Scheduler == null) {
        // set up new scheduler with high priority threads
        AppContext.eci_cri_Scheduler = new ScheduledThreadPoolExecutor(1, new NamedPriorityThreadFactory("ECI_CRI",
            Thread.MAX_PRIORITY));
      }
      if (AppContext.scWorkerThreadPool == null) {
        AppContext.scWorkerThreadPool = Executors.newCachedThreadPool(new NamedPriorityThreadFactory("SC_WORKER"));
      }

      if (AppContext.orderedSCWorkerThreadPool == null) {
        AppContext.orderedSCWorkerThreadPool = new OrderedMemoryAwareThreadPoolExecutor(
            Constants.DEFAULT_MAX_ORDERED_IO_THREADS, 0, 0, 10, TimeUnit.SECONDS, new NamedPriorityThreadFactory(
                "ORDERED_SC_WORKER"));
      }
    }
  }
View Full Code Here

  /**
   * Instantiates a SessionRegistry.
   */
  public SessionRegistry() {
    this.sessionScheduler = new ScheduledThreadPoolExecutor(1, new NamedPriorityThreadFactory("SessionTimeout"));
  }
View Full Code Here

TOP

Related Classes of org.serviceconnector.util.NamedPriorityThreadFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.