Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for setNameFormat (0.13 sec)

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

        ThreadFactory factory = builder.setNameFormat(format).build();
        for (int i = 0; i < 11; i++) {
          assertEquals(rootLocaleFormat(format, i), factory.newThread(monitoredRunnable).getName());
        }
      }
    
      public void testNameFormatWithPercentD_custom() {
        String format = "super-duper-thread-%d";
        ThreadFactory factory = builder.setNameFormat(format).build();
        for (int i = 0; i < 11; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

    /**
     * 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}
     *   <li>an {@linkplain Thread#setUncaughtExceptionHandler uncaught exception handler}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 14 22:50:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        ThreadFactory factory = builder.setNameFormat(format).build();
        for (int i = 0; i < 11; i++) {
          assertEquals(rootLocaleFormat(format, i), factory.newThread(monitoredRunnable).getName());
        }
      }
    
      public void testNameFormatWithPercentD_custom() {
        String format = "super-duper-thread-%d";
        ThreadFactory factory = builder.setNameFormat(format).build();
        for (int i = 0; i < 11; i++) {
    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. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

          extends ForwardingFuture<V> implements ListenableFuture<V> {
    
        private static final ThreadFactory threadFactory =
            new ThreadFactoryBuilder()
                .setDaemon(true)
                .setNameFormat("ListenableFutureAdapter-thread-%d")
                .build();
        private static final Executor defaultAdapterExecutor =
            Executors.newCachedThreadPool(threadFactory);
    
        private final Executor adapterExecutor;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

          extends ForwardingFuture<V> implements ListenableFuture<V> {
    
        private static final ThreadFactory threadFactory =
            new ThreadFactoryBuilder()
                .setDaemon(true)
                .setNameFormat("ListenableFutureAdapter-thread-%d")
                .build();
        private static final Executor defaultAdapterExecutor =
            Executors.newCachedThreadPool(threadFactory);
    
        private final Executor adapterExecutor;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top