Package com.gitblit.utils

Examples of com.gitblit.utils.WorkQueue$Executor


  public SshCommandFactory(IGitblit gitblit, IdGenerator idGenerator) {
    this.gitblit = gitblit;

    int threads = gitblit.getSettings().getInteger(Keys.git.sshCommandStartThreads, 2);
    WorkQueue workQueue = new WorkQueue(idGenerator);
    startExecutor = workQueue.createQueue(threads, "SshCommandStart");
    destroyExecutor = Executors.newSingleThreadExecutor(
        new ThreadFactoryBuilder()
          .setNameFormat("SshCommandDestroy-%s")
          .setDaemon(true)
          .build());
View Full Code Here


  private final WorkQueue.Executor executor;

  public BaseCommand() {
    task = Atomics.newReference();
    IdGenerator gen = new IdGenerator();
    WorkQueue w = new WorkQueue(gen);
    this.executor = w.getDefaultQueue();
  }
View Full Code Here

  public ServicesManager(IGitblit gitblit) {
    this.settings = gitblit.getSettings();
    this.gitblit = gitblit;
    int defaultThreadPoolSize = settings.getInteger(Keys.execution.defaultThreadPoolSize, 1);
    this.idGenerator = new IdGenerator();
    this.workQueue = new WorkQueue(idGenerator, defaultThreadPoolSize);
  }
View Full Code Here

TOP

Related Classes of com.gitblit.utils.WorkQueue$Executor

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.