Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 608 for Thread (0.12 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/TestFileWagon.java

    import org.apache.maven.wagon.providers.file.FileWagon;
    import org.apache.maven.wagon.resource.Resource;
    
    /**
     * Wagon used for test cases that annotate some methods. Note that this is not a thread-safe implementation.
     */
    public class TestFileWagon extends FileWagon {
        private TestTransferListener testTransferListener;
        private boolean insideGet;
    
        @Deprecated
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/MapRetrievalCache.java

        if (value != null) {
          return value;
        }
    
        // Store a local reference to the cache entry. If the backing map is immutable, this,
        // in combination with immutable cache entries, will ensure a thread-safe cache.
        CacheEntry<K, V> entry;
    
        // Check cache. We use == on purpose because it's cheaper and a cache miss is ok.
        entry = cacheEntry1;
        if (entry != null && entry.key == key) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerContext.java

        protected IntervalController intervalController;
    
        protected Set<String> robotsTxtUrlSet = new LruHashSet<>(10000);
    
        protected ThreadLocal<String[]> sitemapsLocal = new ThreadLocal<>();
    
        /** The number of a thread */
        protected int numOfThread = 10;
    
        protected int maxThreadCheckCount = 20;
    
        /** a max depth for crawling. -1 is no depth check. */
        protected int maxDepth = -1;
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/settings/BadWordSettings.java

            if (defaultWords != null) {
                return;
            }
    
            final List<String> list = new ArrayList<>();
            try (BufferedReader br = new BufferedReader(new InputStreamReader(
                    Thread.currentThread().getContextClassLoader().getResourceAsStream("suggest_settings/default-badwords.txt")))) {
    
                String line;
                while ((line = br.readLine()) != null) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/FakeTicker.java

    /**
     * A Ticker whose value can be advanced programmatically in test.
     *
     * <p>The ticker can be configured so that the time is incremented whenever {@link #read} is called:
     * see {@link #setAutoIncrementStep}.
     *
     * <p>This class is thread-safe.
     *
     * @author Jige Yu
     * @since 10.0
     */
    @ElementTypesAreNonnullByDefault
    @GwtCompatible
    public class FakeTicker extends Ticker {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/collect/testing/OpenJdk6MapTests.java

         * implementations, supports add() under JDK8. This seems problematic, but I
         * didn't see that discussed in the review, which included many other
         * changes: https://mail.openjdk.org/pipermail/core-libs-dev/2013-May/thread.html#17367
         *
         * TODO(cpovirk): decide what the best long-term action here is: force users
         * to suppress (as we do now), stop testing entrySet().add() at all, make
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        clientListener.assertFailure(
          SocketTimeoutException::class.java,
          "timeout",
          "Read timed out",
        )
        assertThat(webSocket.close(1000, null)).isFalse()
      }
    
      /**
       * There's no read timeout when reading the first byte of a new frame. But as soon as we start
       * reading a frame we enable the read timeout. In this test we have the server returning the first
       * byte of a frame but no more frames.
       */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGeneratorTest.java

        public void test_saveImage() throws Exception {
            HtmlTagBasedGenerator generator = new HtmlTagBasedGenerator();
            ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
            File outputFile = File.createTempFile("generator_", ".png");
    
            String imagePath = "thumbnail/600x400.png";
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

                crawler.getCrawlerContext().setMaxAccessCount(maxCount);
                crawler.getCrawlerContext().setNumOfThread(numOfThread);
                final String sessionId = crawler.execute();
                Thread.sleep(3000);
                assertEquals(CrawlerStatus.RUNNING, crawler.crawlerContext.getStatus());
                crawler.awaitTermination();
                assertEquals(maxCount, dataService.getCount(sessionId));
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/internal/duplex/MockStreamHandler.kt

        }
      }
    
      fun exhaustResponse() =
        apply {
          actions += { stream -> stream.responseBody.close() }
        }
    
      fun sleep(
        duration: Long,
        unit: TimeUnit,
      ) = apply {
        actions += { Thread.sleep(unit.toMillis(duration)) }
      }
    
      override fun handle(stream: Stream) {
        val task = serviceStreamTask(stream)
        results.add(task)
        task.run()
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top