Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for setDaemon (0.22 sec)

  1. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        }
      }
    
      public void testDaemon_false() {
        ThreadFactory factory = builder.setDaemon(false).build();
        Thread thread = factory.newThread(monitoredRunnable);
        assertFalse(thread.isDaemon());
      }
    
      public void testDaemon_true() {
        ThreadFactory factory = builder.setDaemon(true).build();
        Thread thread = factory.newThread(monitoredRunnable);
        assertTrue(thread.isDaemon());
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

    import javax.annotation.CheckForNull;
    
    /**
     * A ThreadFactory builder, providing any combination of these features:
     *
     * <ul>
     *   <li>whether threads should be marked as {@linkplain Thread#setDaemon daemon} threads
     *   <li>a {@linkplain ThreadFactoryBuilder#setNameFormat naming format}
     *   <li>a {@linkplain Thread#setPriority thread priority}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 10 21:56:03 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        assertTrue(listenableFuture.isDone());
      }
    
      public void testListenInPoolThreadUsesGivenExecutor() throws Exception {
        ExecutorService executorService =
            newCachedThreadPool(new ThreadFactoryBuilder().setDaemon(true).build());
        NonListenableSettableFuture<String> abstractFuture = NonListenableSettableFuture.create();
        ExecutorSpy spy = new ExecutorSpy(executorService);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        }
      }
    
      public void testDaemon_false() {
        ThreadFactory factory = builder.setDaemon(false).build();
        Thread thread = factory.newThread(monitoredRunnable);
        assertFalse(thread.isDaemon());
      }
    
      public void testDaemon_true() {
        ThreadFactory factory = builder.setDaemon(true).build();
        Thread thread = factory.newThread(monitoredRunnable);
        assertTrue(thread.isDaemon());
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        assertTrue(listenableFuture.isDone());
      }
    
      public void testListenInPoolThreadUsesGivenExecutor() throws Exception {
        ExecutorService executorService =
            newCachedThreadPool(new ThreadFactoryBuilder().setDaemon(true).build());
        NonListenableSettableFuture<String> abstractFuture = NonListenableSettableFuture.create();
        ExecutorSpy spy = new ExecutorSpy(executorService);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/transport/Transport.java

                        state = 0;
                        throw te;
                }
    
                state = 1;
                te = null;
                thread = new Thread( this, name );
                thread.setDaemon( true );
    
                synchronized (thread) {
                    thread.start();
                    thread.wait( timeout );          /* wait for doConnect */
    
                    switch (state) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/timer/TimeoutManager.java

        }
    
        /**
         * 処理を開始します。
         */
        public synchronized void start() {
            if (thread == null) {
                thread = new Thread(this, "CoreLib-TimeoutManager");
                thread.setDaemon(true);
                thread.start();
                if (logger.isDebugEnabled()) {
                    logger.debug("TimeoutManager started.");
                }
            }
        }
    
        /**
         * 処理を停止します。
         */
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8K bytes
    - Viewed (0)
  8. maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

            public Thread newThread(Runnable r) {
                Thread newThread = new Thread(GROUP, r, "resolver-" + THREAD_NUMBER.getAndIncrement());
                newThread.setDaemon(true);
                newThread.setContextClassLoader(null);
                return newThread;
            }
        }
    
        private class ResolveTask implements Runnable {
    
            private final ClassLoader classLoader;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 24.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/WebFsIndexHelper.java

            indexUpdater.setName("IndexUpdater");
            indexUpdater.setPriority(indexUpdaterPriority);
            indexUpdater.setSessionIdList(sessionIdList);
            indexUpdater.setDaemon(true);
            indexUpdater.setCrawlerList(crawlerList);
            getAvailableBoostDocumentRuleList().forEach(rule -> {
                indexUpdater.addDocBoostMatcher(new org.codelibs.fess.indexer.DocBoostMatcher(rule));
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

        for (int i = 0; i < size; i++) {
          builder.add(i);
        }
        keys = builder.build();
        threadPool =
            Executors.newFixedThreadPool(threads, new ThreadFactoryBuilder().setDaemon(true).build());
      }
    
      @Benchmark
      long add(final int reps) throws ExecutionException, InterruptedException {
        return doMultithreadedLoop(
            new Callable<Long>() {
              @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 16.6K bytes
    - Viewed (0)
Back to top