Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for AbstractExecutionThreadService (1.45 seconds)

  1. android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

              triggerShutdown();
            }
    
            @Override
            public String toString() {
              return AbstractExecutionThreadService.this.toString();
            }
          };
    
      /** Constructor for use by subclasses. */
      protected AbstractExecutionThreadService() {}
    
      /**
       * Start the service. This method is invoked on the execution thread.
       *
       * <p>By default this method does nothing.
    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)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

    import java.util.concurrent.ScheduledExecutorService;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Unit test for {@link AbstractExecutionThreadService}.
     *
     * @author Jesse Wilson
     */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class AbstractExecutionThreadServiceTest extends TestCase {
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 12.8K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

    import java.util.concurrent.ScheduledExecutorService;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Unit test for {@link AbstractExecutionThreadService}.
     *
     * @author Jesse Wilson
     */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class AbstractExecutionThreadServiceTest extends TestCase {
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 12.8K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractService.java

     * requests, responding to them with {@link #notifyStarted()} and {@link #notifyStopped()}
     * callbacks. Its subclasses must manage threads manually; consider {@link
     * AbstractExecutionThreadService} if you need only a single execution thread.
     *
     * @author Jesse Wilson
     * @author Luke Sandberg
     * @since 1.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 19 21:24:11 GMT 2025
    - 20.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

              }
            };
        thread.start();
        thread.join(LONG_TIMEOUT_MILLIS);
        assertFalse(thread + " is deadlocked", thread.isAlive());
      }
    
      private static class NoOpThreadedService extends AbstractExecutionThreadService {
        final CountDownLatch latch = new CountDownLatch(1);
    
        @Override
        protected void run() throws Exception {
          latch.await();
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

              }
            };
        thread.start();
        thread.join(LONG_TIMEOUT_MILLIS);
        assertFalse(thread + " is deadlocked", thread.isAlive());
      }
    
      private static class NoOpThreadedService extends AbstractExecutionThreadService {
        final CountDownLatch latch = new CountDownLatch(1);
    
        @Override
        protected void run() throws Exception {
          latch.await();
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

       * so that we know that the stopping() listeners will execute on a different thread than the
       * terminated() listeners.
       */
      private static class SnappyShutdownService extends AbstractExecutionThreadService {
        final int index;
        final CountDownLatch latch = new CountDownLatch(1);
    
        SnappyShutdownService(int index) {
          this.index = index;
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

       * so that we know that the stopping() listeners will execute on a different thread than the
       * terminated() listeners.
       */
      private static class SnappyShutdownService extends AbstractExecutionThreadService {
        final int index;
        final CountDownLatch latch = new CountDownLatch(1);
    
        SnappyShutdownService(int index) {
          this.index = index;
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 25.6K bytes
    - Click Count (0)
Back to Top