Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for defaultThreadFactory (0.12 sec)

  1. guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

     * </ul>
     *
     * <p>If no backing thread factory is provided, a default backing thread factory is used as if by
     * calling {@code setThreadFactory(}{@link Executors#defaultThreadFactory()}{@code )}.
     *
     * <p><b>Java 21+ users:</b> consider using the {@code Thread.Builder} interface instead. E.g.,
     * instead of {@code new ThreadFactoryBuilder().setPriority(priority).setDaemon(false).build()}, use
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 14 22:50:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        ThreadFactory threadFactory = builder.build();
        Thread thread = threadFactory.newThread(monitoredRunnable);
        checkThreadPoolName(thread, 1);
    
        Thread defaultThread = Executors.defaultThreadFactory().newThread(monitoredRunnable);
        assertEquals(defaultThread.isDaemon(), thread.isDaemon());
        assertEquals(defaultThread.getPriority(), thread.getPriority());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        ThreadFactory threadFactory = builder.build();
        Thread thread = threadFactory.newThread(monitoredRunnable);
        checkThreadPoolName(thread, 1);
    
        Thread defaultThread = Executors.defaultThreadFactory().newThread(monitoredRunnable);
        assertEquals(defaultThread.isDaemon(), thread.isDaemon());
        assertEquals(defaultThread.getPriority(), thread.getPriority());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

      public void testPlatformThreadFactory_default() {
        ThreadFactory factory = MoreExecutors.platformThreadFactory();
        assertNotNull(factory);
        // Executors#defaultThreadFactory() may return a new instance each time.
        assertEquals(factory.getClass(), Executors.defaultThreadFactory().getClass());
      }
    
      public void testThreadRenaming() {
        Executor renamingExecutor =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

      public void testPlatformThreadFactory_default() {
        ThreadFactory factory = MoreExecutors.platformThreadFactory();
        assertNotNull(factory);
        // Executors#defaultThreadFactory() may return a new instance each time.
        assertEquals(factory.getClass(), Executors.defaultThreadFactory().getClass());
      }
    
      public void testThreadRenaming() {
        Executor renamingExecutor =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * it returns {@link Executors#defaultThreadFactory()}.
       *
       * @since 14.0
       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      public static ThreadFactory platformThreadFactory() {
        if (!isAppEngineWithApiClasses()) {
          return Executors.defaultThreadFactory();
        }
        try {
          return (ThreadFactory)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 44.1K bytes
    - Viewed (0)
Back to top