Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 53 for service (0.16 sec)

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

      /** Constructor for use by subclasses. */
      protected AbstractIdleService() {}
    
      /** Start the service. */
      protected abstract void startUp() throws Exception;
    
      /** Stop the service. */
      protected abstract void shutDown() throws Exception;
    
      /**
       * Returns the {@link Executor} that will be used to run this service. Subclasses may override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 13:59:28 GMT 2023
    - 5.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Stopwatch.java

     * behavior of the stopwatch.
     *
     * <p><b>Note:</b> This class is not thread-safe.
     *
     * <p><b>Warning for Android users:</b> a stopwatch with default behavior may not continue to keep
     * time while the device is asleep. Instead, create one like this:
     *
     * <pre>{@code
     * Stopwatch.createStarted(
     *      new Ticker() {
     *        public long read() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * acquire(3) arrives. We serve this request out of storedPermits, and reduce that to 7.0 (how
       * this is translated to throttling time is discussed later). Immediately after, assume that an
       * acquire(10) request arriving. We serve the request partly from storedPermits, using all the
       * remaining 7.0 permits, and the remaining 3.0, we serve them by fresh permits produced by the
       * rate limiter.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    public abstract class AbstractExecutionThreadService implements Service {
      private static final LazyLogger logger = new LazyLogger(AbstractExecutionThreadService.class);
    
      /* use AbstractService for state management */
      private final Service delegate =
          new AbstractService() {
            @Override
            protected final void doStart() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ExecutorService service = mock(ExecutorService.class);
        application.addDelayedShutdownHook(service, 2, TimeUnit.SECONDS);
        verify(service, Mockito.never()).shutdown();
        application.shutdown();
        InOrder shutdownFirst = Mockito.inOrder(service);
        shutdownFirst.verify(service).shutdown();
        shutdownFirst.verify(service).awaitTermination(2, TimeUnit.SECONDS);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ForwardingListeningExecutorService.java

    import java.util.concurrent.Callable;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A listening executor service which forwards all its method calls to another listening executor
     * service. Subclasses should override one or more methods to modify the behavior of the backing
     * executor service as desired per the <a
     * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Futures.java

       * <p>The delegate future is interrupted and cancelled if it times out.
       *
       * @param delegate The future to delegate to.
       * @param unit the time unit of the time parameter
       * @param scheduledExecutor The executor service to enforce the timeout.
       * @since 19.0
       */
      @J2ktIncompatible
      @GwtIncompatible // java.util.concurrent.ScheduledExecutorService
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        final LongHolder holder = new LongHolder();
        final ArrayList<ListenableFuture<Integer>> lengthChecks = new ArrayList<>();
        final List<Integer> completeLengthChecks;
        final int baseStackDepth;
        ExecutorService service = Executors.newFixedThreadPool(5);
        try {
          // Avoid counting frames from the executor itself, or the ExecutionSequencer
          baseStackDepth =
              serializer
                  .submit(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        final LongHolder holder = new LongHolder();
        final ArrayList<ListenableFuture<Integer>> lengthChecks = new ArrayList<>();
        final List<Integer> completeLengthChecks;
        final int baseStackDepth;
        ExecutorService service = Executors.newFixedThreadPool(5);
        try {
          // Avoid counting frames from the executor itself, or the ExecutionSequencer
          baseStackDepth =
              serializer
                  .submit(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/HttpHeaders.java

        public static final String UNSAFE_URL = "unsafe-url";
      }
    
      /**
       * The HTTP <a href="https://www.w3.org/TR/service-workers/#update-algorithm">{@code
       * Service-Worker}</a> header field name.
       *
       * @since 20.0
       */
      public static final String SERVICE_WORKER = "Service-Worker";
      /** The HTTP {@code TE} header field name. */
      public static final String TE = "TE";
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 34.3K bytes
    - Viewed (0)
Back to top