Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 506 for runnable (0.06 seconds)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerThread.java

     * It is responsible for fetching URLs from the queue, accessing the content,
     * processing the response, and extracting child URLs.
     *
     * <p>
     * This class implements the {@link Runnable} interface, allowing it to be executed in a separate thread.
     * It uses various services and components, such as {@link UrlQueueService}, {@link DataService},
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Wed Dec 31 09:07:38 GMT 2025
    - 20.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

          this.adapterExecutor = checkNotNull(adapterExecutor);
        }
    
        @Override
        protected Future<V> delegate() {
          return delegate;
        }
    
        @Override
        public void addListener(Runnable listener, Executor exec) {
          executionList.add(listener, exec);
    
          // When a listener is first added, we run a task that will wait for the delegate to finish,
          // and when it is done will run the listeners.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

        Service service =
            new TestService() {
              @Override
              protected Executor executor() {
                return new Executor() {
                  @Override
                  public void execute(Runnable command) {}
                };
              }
    
              @Override
              protected String serviceName() {
                return "Foo";
              }
            };
        TimeoutException e =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

      }
    
      @SuppressWarnings("Java8ApiChecker")
      static class MyServerExampleWithCleaner implements AutoCloseable {
        private static final Cleaner cleaner = Cleaner.create();
    
        private static Runnable closeServerSocketRunnable(
            ServerSocket serverSocket, AtomicBoolean cleanerRan) {
          return () -> {
            try {
              serverSocket.close();
              cleanerRan.set(true);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Feb 27 21:20:19 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

          completed.assertCompletionExpected();
          assertThat(queue.peek()).isEqualTo("");
        }
    
        private static void scheduleEnableWrites(BlockingQueue<String> queue, long countdownInMillis) {
          Runnable toRun = new EnableWrites(queue, countdownInMillis);
          // TODO(cpovirk): automatically fail the test if this thread throws
          Thread enablerThread = new Thread(toRun);
          enablerThread.start();
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

       * this method to use a custom {@link Executor}, which may configure its worker thread with a
       * specific name, thread group or priority. The returned executor's {@link
       * Executor#execute(Runnable) execute()} method is called when this service is started, and should
       * return promptly.
       *
       * <p>The default implementation returns a new {@link Executor} that sets the name of its threads
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

        private val exceptions: BlockingQueue<Exception> = LinkedBlockingQueue()
    
        override fun execute(runnable: Runnable) {
          super.execute {
            try {
              runnable.run()
            } catch (e: Exception) {
              exceptions.add(e)
            }
          }
        }
    
        fun takeException(): Exception = exceptions.take()
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 16:11:23 GMT 2025
    - 28.2K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

          completed.assertCompletionExpected();
          assertThat(queue.peek()).isEqualTo("");
        }
    
        private static void scheduleEnableWrites(BlockingQueue<String> queue, long countdownInMillis) {
          Runnable toRun = new EnableWrites(queue, countdownInMillis);
          // TODO(cpovirk): automatically fail the test if this thread throws
          Thread enablerThread = new Thread(toRun);
          enablerThread.start();
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

        assertTrue(getUninterruptibly(delayedFuture));
    
        assertTrue(Thread.interrupted()); // clears the interrupt state, too
        assertTrue(sleeper.completed);
      }
    
      private static class SleepingRunnable implements Runnable {
        final int millis;
        volatile boolean completed;
    
        SleepingRunnable(int millis) {
          this.millis = millis;
        }
    
        @Override
        public void run() {
          try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PlexusContainerCapsuleFactory.java

                    bind(ILoggerFactory.class).toProvider(() -> context.loggerFactory);
                }
            });
    
            ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
            Runnable settingsCleaner = null;
            try {
                container.setLookupRealm(null);
                container.setLoggerManager(createLoggerManager());
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Jul 03 14:18:26 GMT 2025
    - 14.3K bytes
    - Click Count (0)
Back to Top