Examples of NexusThreadFactory


Examples of org.sonatype.nexus.threads.NexusThreadFactory

  public DefaultThreadPoolManager(final EventBus eventBus) {
    this.eventBus = checkNotNull(eventBus);
    // direct hand-off used! Proxy pool will use caller thread to execute the task when full!
    final ThreadPoolExecutor target =
        new ThreadPoolExecutor(0, REPOSITORY_THREAD_POOL_SIZE, 60L, TimeUnit.SECONDS,
            new SynchronousQueue<Runnable>(), new NexusThreadFactory("repo", "Repository TPool"),
            new CallerRunsPolicy());

    this.repositoryThreadPool = NexusExecutorService.forCurrentSubject(target);
    eventBus.register(this);
  }
View Full Code Here

Examples of org.sonatype.nexus.threads.NexusThreadFactory

    this.config = checkNotNull(config);
    this.localContentDiscoverer = checkNotNull(localContentDiscoverer);
    this.remoteContentDiscoverer = checkNotNull(remoteContentDiscoverer);
    this.quickRemoteStrategy = checkNotNull(quickRemoteStrategy);
    final ScheduledThreadPoolExecutor target =
        new ScheduledThreadPoolExecutor(5, new NexusThreadFactory("ar", "AR-Updater"),
            new ThreadPoolExecutor.AbortPolicy());
    this.executor = NexusScheduledExecutorService.forFixedSubject(target, FakeAlmightySubject.TASK_SUBJECT);
    this.constrainedExecutor = new ConstrainedExecutorImpl(executor);
    // register event dispatcher
    this.eventDispatcher = new EventDispatcher(this);
View Full Code Here

Examples of org.sonatype.nexus.threads.NexusThreadFactory

    this.eventSubscriberProviders = checkNotNull(eventSubscriberProviders);

    // direct hand-off used! Host pool will use caller thread to execute async inspectors when pool full!
    final ThreadPoolExecutor target =
        new ThreadPoolExecutor(0, HOST_THREAD_POOL_SIZE, 60L, TimeUnit.SECONDS, new SynchronousQueue<Runnable>(),
            new NexusThreadFactory("esh", "Event Subscriber Host"), new CallerRunsPolicy());
    this.hostThreadPool = NexusExecutorService.forCurrentSubject(target);
    this.asyncBus = new com.google.common.eventbus.AsyncEventBus("esh-async", hostThreadPool);

    eventBus.register(this);
    log.info("Initialized");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.