Package com.gitblit.utils

Examples of com.gitblit.utils.WorkQueue.createQueue()


  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

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.