Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ThreadLocal (0.23 sec)

  1. 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 (0)
  2. 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)
  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. 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)
  5. 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)
  6. src/main/java/org/codelibs/fess/helper/JobHelper.java

        }
    
        /** Monitor interval in seconds (default: 1 hour) */
        protected int monitorInterval = 60 * 60;// 1hour
    
        /** Thread-local storage for job runtime information */
        protected ThreadLocal<LaJobRuntime> jobRuntimeLocal = new ThreadLocal<>();
    
        /**
         * Registers a scheduled job with the job manager.
         *
         * @param scheduledJob the scheduled job to register
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/ActivityHelperTest.java

    import org.lastaflute.web.login.credential.LoginCredential;
    
    public class ActivityHelperTest extends UnitFessTestCase {
    
        private ActivityHelper activityHelper;
    
        private ThreadLocal<String> localLogMsg = new ThreadLocal<>();
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            activityHelper = new ActivityHelper() {
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

       */
      // This is logically a Set, but an ArrayList is used to minimize the amount
      // of allocation done on lock()/unlock().
      private static final ThreadLocal<ArrayList<LockGraphNode>> acquiredLocks =
          new ThreadLocal<ArrayList<LockGraphNode>>() {
            @Override
            protected ArrayList<LockGraphNode> initialValue() {
              return Lists.<LockGraphNode>newArrayListWithCapacity(3);
            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

     *
     * @author Dimitris Andreou
     */
    @NullUnmarked
    public class BloomFilterTest extends TestCase {
      private static final int NUM_PUTS = 100_000;
      private static final ThreadLocal<Random> random =
          new ThreadLocal<Random>() {
            @Override
            protected Random initialValue() {
              return new Random();
            }
          };
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/CrawlerStatsHelperTest.java

        private static final Logger logger = LogManager.getLogger(CrawlerStatsHelperTest.class);
    
        private CrawlerStatsHelper crawlerStatsHelper;
    
        private ThreadLocal<String> localLogMsg = new ThreadLocal<>();
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            ComponentUtil.register(new SystemHelper(), "systemHelper");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 15K bytes
    - Viewed (0)
Back to top