Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for setNameFormat (0.06 seconds)

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

       * with this ThreadFactory.
       *
       * <p><b>Java 21+ users:</b> use {@link Thread.Builder#name(String, long)} instead. Note that
       * {@link #setNameFormat} accepts a thread name <i>format string</i> (e.g., {@code
       * threadFactoryBuilder.setNameFormat("rpc-pool-%d")}), while {@code threadBuilder.name()} accepts
       * a thread name <i>prefix</i> and initial counter value (e.g., {@code
       * threadBuilder.name("rpc-pool-", 0)}.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Dec 29 17:36:00 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        ThreadFactory factory = builder.setNameFormat(format).build();
        for (int i = 0; i < 11; i++) {
          assertThat(factory.newThread(monitoredRunnable).getName())
              .isEqualTo(rootLocaleFormat(format, i));
        }
      }
    
      public void testNameFormatWithPercentD_custom() {
        String format = "super-duper-thread-%d";
        ThreadFactory factory = builder.setNameFormat(format).build();
        for (int i = 0; i < 11; i++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        ThreadFactory factory = builder.setNameFormat(format).build();
        for (int i = 0; i < 11; i++) {
          assertThat(factory.newThread(monitoredRunnable).getName())
              .isEqualTo(rootLocaleFormat(format, i));
        }
      }
    
      public void testNameFormatWithPercentD_custom() {
        String format = "super-duper-thread-%d";
        ThreadFactory factory = builder.setNameFormat(format).build();
        for (int i = 0; i < 11; i++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.8K bytes
    - Click Count (0)
Back to Top