Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Setpriority (0.06 sec)

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

        ThreadFactory factory1 = builder.setPriority(1).build();
        assertEquals(1, factory1.newThread(monitoredRunnable).getPriority());
    
        ThreadFactory factory2 = builder.setPriority(2).build();
        assertEquals(1, factory1.newThread(monitoredRunnable).getPriority());
        assertEquals(2, factory2.newThread(monitoredRunnable).getPriority());
      }
    
      public void testBuildTwice() {
        ThreadFactory unused;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        ThreadFactory factory1 = builder.setPriority(1).build();
        assertEquals(1, factory1.newThread(monitoredRunnable).getPriority());
    
        ThreadFactory factory2 = builder.setPriority(2).build();
        assertEquals(1, factory1.newThread(monitoredRunnable).getPriority());
        assertEquals(2, factory2.newThread(monitoredRunnable).getPriority());
      }
    
      public void testBuildTwice() {
        ThreadFactory unused;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

       *
       * @param priority the priority for new Threads created with this ThreadFactory
       * @return this for the builder pattern
       */
      @CanIgnoreReturnValue
      public ThreadFactoryBuilder setPriority(int priority) {
        // Thread#setPriority() already checks for validity. These error messages
        // are nicer though and will fail-fast.
        checkArgument(
            priority >= Thread.MIN_PRIORITY,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:35:26 UTC 2025
    - 9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/score/ScoreUpdaterTest.java

            TestScoreBooster booster1 = new TestScoreBooster(100L);
            booster1.setPriority(1);
            TestScoreBooster booster2 = new TestScoreBooster(200L);
            booster2.setPriority(1);
            TestScoreBooster booster3 = new TestScoreBooster(300L);
            booster3.setPriority(1);
    
            scoreUpdater.addScoreBooster(booster1);
            scoreUpdater.addScoreBooster(booster2);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/ingest/Ingester.java

         *
         * @return the priority value
         */
        public int getPriority() {
            return priority;
        }
    
        /**
         * Sets the priority of this ingester.
         * Lower numbers indicate higher priority.
         *
         * @param priority the priority value to set
         */
        public void setPriority(final int priority) {
            this.priority = priority;
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  6. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

                  request: UrlRequest,
                  info: UrlResponseInfo?,
                ) {
                  completableFuture.completeExceptionally(CancellationException())
                }
              },
            ).setPriority(REQUEST_PRIORITY_MEDIUM)
            .setDirectExecutorAllowed(true)
            .setTrafficStatsTag(101)
            .build()
    
        req.start()
        return completableFuture
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/score/ScoreBooster.java

        /**
         * Gets the priority of this score booster.
         * @return The priority.
         */
        public int getPriority() {
            return priority;
        }
    
        /**
         * Sets the priority of this score booster.
         * @param priority The priority.
         */
        public void setPriority(final int priority) {
            this.priority = priority;
        }
    
        /**
         * Sets the request timeout.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/DataIndexHelper.java

                initParamMap.put(Constants.CRAWLING_INFO_ID, sid);
    
                final DataCrawlingThread dataCrawlingThread = new DataCrawlingThread(dataConfig, indexUpdateCallback, initParamMap);
                dataCrawlingThread.setPriority(crawlerPriority);
                dataCrawlingThread.setName(sid);
                dataCrawlingThread.setDaemon(true);
    
                dataCrawlingThreadList.add(dataCrawlingThread);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/WebFsIndexHelper.java

            }
    
            // run index update
            final IndexUpdater indexUpdater = ComponentUtil.getIndexUpdater();
            indexUpdater.setName("IndexUpdater");
            indexUpdater.setPriority(indexUpdaterPriority);
            indexUpdater.setSessionIdList(sessionIdList);
            indexUpdater.setDaemon(true);
            indexUpdater.setCrawlerList(crawlerList);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        // Sleep for enough time to add 1500 milliseconds of overwait to the get() call.
        long toWaitMillis = 3500 - NANOSECONDS.toMillis(System.nanoTime() - thread.startTime);
        Thread.sleep(toWaitMillis);
        thread.setPriority(Thread.MAX_PRIORITY);
        Thread.class.getMethod("resume").invoke(thread);
        thread.join();
        // It's possible to race and suspend the thread just before the park call actually takes effect,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
Back to top