Search Options

Results per page
Sort
Preferred Languages
Advance

Results 391 - 400 of 740 for Thread (0.41 sec)

  1. src/test/java/jcifs/util/SecureKeyManagerTest.java

            keyManager.storeSessionKey(sessionId, testKey, "AES");
    
            long initialAge = keyManager.getKeyAge(sessionId);
            assertTrue(initialAge >= 0 && initialAge < 100, "Initial age should be small");
    
            Thread.sleep(200);
    
            long laterAge = keyManager.getKeyAge(sessionId);
            assertTrue(laterAge >= 200, "Age should increase after delay");
        }
    
        @Test
        public void testKeyAgeNonExistent() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/ConsoleMavenTransferListenerTest.java

                        });
                    }
    
                    // start all threads at once
                    try {
                        startLatch.await();
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
    
                    // wait for all thread to end
                    try {
                        endLatch.await();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImpl.java

        /**
         * Creates a new fixed thread pool executor with the specified number of threads.
         *
         * @param nThreads the number of threads in the pool
         * @return a new ThreadPoolExecutor configured for this callback
         */
        protected ExecutorService newFixedThreadPool(final int nThreads) {
            if (logger.isDebugEnabled()) {
                logger.debug("Initialized executor thread pool: size={}", nThreads);
            }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 29.7K bytes
    - Viewed (3)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/EncryptInvoker.java

                context.addInHeader("This tool is part of Apache Maven 4 distribution.");
                context.addInHeader("");
    
                context.terminal.handle(
                        Terminal.Signal.INT, signal -> Thread.currentThread().interrupt());
    
                context.reader =
                        LineReaderBuilder.builder().terminal(context.terminal).build();
    
                if (context.options().goals().isEmpty()
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/UpgradeInvoker.java

                context.addInHeader("This tool is part of Apache Maven 4 distribution.");
                context.addInHeader("");
    
                context.terminal.handle(
                        Terminal.Signal.INT, signal -> Thread.currentThread().interrupt());
    
                context.reader =
                        LineReaderBuilder.builder().terminal(context.terminal).build();
    
                if (context.options().goals().isEmpty()) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleModuleBuilder.java

                }
                if (t instanceof Error error) {
                    throw error;
                }
            } finally {
                session.setCurrentProject(null);
    
                Thread.currentThread().setContextClassLoader(reactorContext.getOriginalContextClassLoader());
            }
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 20:01:00 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Basher test for {@link ConcurrentHashMultiset}: start a bunch of threads, have each of them do
     * operations at random. Each thread keeps track of the per-key deltas that it's directly
     * responsible for; after all threads have completed, we sum the per-key deltas and compare to the
     * existing multiset values.
     *
     * @author mike nonemacher
     */
    
    @NullUnmarked
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 22:42:14 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/SecureKeyManager.java

        private final java.util.concurrent.ScheduledExecutorService rotationScheduler =
                java.util.concurrent.Executors.newSingleThreadScheduledExecutor(r -> {
                    Thread t = new Thread(r, "SecureKeyManager-Rotation");
                    t.setDaemon(true);
                    return t;
                });
        private java.util.concurrent.ScheduledFuture<?> rotationTask;
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Queues.java

              }
              buffer.add(e);
              added++;
            }
          }
        } finally {
          if (interrupted) {
            Thread.currentThread().interrupt();
          }
        }
        return added;
      }
    
      /**
       * Returns a synchronized (thread-safe) queue backed by the specified queue. In order to guarantee
       * serial access, it is critical that <b>all</b> access to the backing queue is accomplished
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Nov 04 17:24:58 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

          @Override
          public void run() {}
        }
    
        @Keep
        public static final class DummyThreadFactory implements ThreadFactory, Serializable {
          @Override
          public Thread newThread(Runnable r) {
            return new Thread(r);
          }
        }
    
        @Keep
        public static final class DummyExecutor implements Executor, Serializable {
          @Override
          public void execute(Runnable command) {}
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 20.9K bytes
    - Viewed (0)
Back to top