Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for ThreadLocal (1.01 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/CrawlingParameterUtil.java

     * <p>Note: If a parameter is set to {@code null}, the corresponding ThreadLocal variable is removed.</p>
     */
    public final class CrawlingParameterUtil {
        private static final ThreadLocal<UrlQueue<?>> URL_QUEUE_THREAD_LOCAL = new ThreadLocal<>();
    
        private static final ThreadLocal<CrawlerContext> ROBOT_CONTEXT_THREAD_LOCAL = new ThreadLocal<>();
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java

        /** Constant for Kryo serializer type. */
        protected static final String KRYO = "kryo";
    
        /** ThreadLocal container for Kryo instances to ensure thread safety. */
        protected final ThreadLocal<Kryo> kryoThreadLocal;
    
        /**
         * Constructs a new DataSerializer.
         * <p>
         * Initializes the ThreadLocal Kryo instances with appropriate configuration.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.1K bytes
    - Viewed (3)
  3. android/guava/src/com/google/common/eventbus/Dispatcher.java

        /** Per-thread queue of events to dispatch. */
        @SuppressWarnings("ThreadLocalUsage") // Each Dispatcher needs its own state.
        private final ThreadLocal<Queue<Event>> queue =
            new ThreadLocal<Queue<Event>>() {
              @Override
              protected Queue<Event> initialValue() {
                return new ArrayDeque<>();
              }
            };
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/Striped64.java

          }
        }
      }
    
      /**
       * ThreadLocal holding a single-slot int array holding hash code. Unlike the JDK8 version of this
       * class, we use a suboptimal int[] representation to avoid introducing a new type that can impede
       * class-unloading when ThreadLocals are not removed.
       */
      static final ThreadLocal<int @Nullable []> threadHashCode = new ThreadLocal<>();
    
      /** Generator of new random hash codes */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jan 15 22:17:15 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

            public void run() {}
          };
    
      public void testDirectExecutorServiceServiceInThreadExecution() throws Exception {
        ListeningExecutorService executor = newDirectExecutorService();
        ThreadLocal<Integer> threadLocalCount =
            new ThreadLocal<Integer>() {
              @Override
              protected Integer initialValue() {
                return 0;
              }
            };
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerContext.java

         */
        protected Set<String> robotsTxtUrlSet = new LruHashSet<>(10000);
    
        /**
         * Thread-local storage for sitemaps.
         */
        protected ThreadLocal<String[]> sitemapsLocal = new ThreadLocal<>();
    
        /** The number of threads used by the crawler */
        protected int numOfThread = 10;
    
        /** The maximum number of times to check for active threads. */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/SourceSinkFactories.java

      }
    
      private abstract static class FileFactory {
    
        private static final Logger logger = Logger.getLogger(FileFactory.class.getName());
    
        private final ThreadLocal<File> fileThreadLocal = new ThreadLocal<>();
    
        File createFile() throws IOException {
          File file = File.createTempFile("SinkSourceFile", "txt");
          fileThreadLocal.set(file);
          return file;
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

       *
       * <p>This class would certainly be simpler and easier to reason about if it were built with
       * ThreadLocal; however, ThreadLocal is not well optimized for the case where the ThreadLocal is
       * non-static, and is initialized/removed frequently - this causes churn in the Thread specific
       * hashmaps. Using a static ThreadLocal to avoid that overhead would mean that different
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/escape/super/com/google/common/escape/Platform.java

    package com.google.common.escape;
    
    /**
     * @author Jesse Wilson
     */
    final class Platform {
    
      private static final char[] CHAR_BUFFER = new char[1024];
    
      static char[] charBufferFromThreadLocal() {
        // ThreadLocal is not available to GWT, so we always reuse the same
        // instance.  It is always safe to return the same instance because
        // javascript is single-threaded, and only used by blocks that doesn't
        // involve async callbacks.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlExtractor.java

        protected Map<String, String> metadataXpathMap = new HashMap<>();
    
        /** Thread-local instance of XPathAPI for thread-safe XPath evaluation. */
        private final ThreadLocal<XPathAPI> xpathAPI = new ThreadLocal<>();
    
        /**
         * Creates a new HtmlExtractor instance.
         */
        public HtmlExtractor() {
            super();
        }
    
        @Override
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top