Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for services (0.18 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

      }
    
      private static void assertState(
          ServiceManager manager, Service.State state, Service... services) {
        Collection<Service> managerServices = manager.servicesByState().get(state);
        for (Service service : services) {
          assertEquals(service.toString(), state, service.state());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 02 17:20:27 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

      public ServiceManager startAsync() {
        for (Service service : services) {
          checkState(service.state() == NEW, "Not all services are NEW, cannot start %s", this);
        }
        for (Service service : services) {
          try {
            state.tryStartTiming(service);
            service.startAsync();
          } catch (IllegalStateException e) {
            // This can happen if the service has already been started or stopped (e.g. by another
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 30.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

      }
    
      private static void assertState(
          ServiceManager manager, Service.State state, Service... services) {
        Collection<Service> managerServices = manager.servicesByState().get(state);
        for (Service service : services) {
          assertEquals(service.toString(), state, service.state());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 02 17:20:27 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Service.java

     */
    @DoNotMock("Create an AbstractIdleService")
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public interface Service {
      /**
       * If the service state is {@link State#NEW}, this initiates service startup and returns
       * immediately. A stopped service may not be restarted.
       *
       * @return this
       * @throws IllegalStateException if the service is not {@link State#NEW}
       * @since 15.0
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 10.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractService.java

    import static com.google.common.util.concurrent.Service.State.FAILED;
    import static com.google.common.util.concurrent.Service.State.NEW;
    import static com.google.common.util.concurrent.Service.State.RUNNING;
    import static com.google.common.util.concurrent.Service.State.STARTING;
    import static com.google.common.util.concurrent.Service.State.STOPPING;
    import static com.google.common.util.concurrent.Service.State.TERMINATED;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

       * that sets the name of the thread to the {@linkplain #serviceName() service name}. Also, the
       * pool will be {@linkplain ScheduledExecutorService#shutdown() shut down} when the service
       * {@linkplain Service.State#TERMINATED terminates} or {@linkplain Service.State#TERMINATED
       * fails}.
       */
      protected ScheduledExecutorService executor() {
        @WeakOuter
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Ascii.java

       */
      public static final byte DLE = 16;
    
      /**
       * Device Control 1. Characters for the control of ancillary devices associated with data
       * processing or telecommunication systems, more especially switching devices "on" or "off." (If a
       * single "stop" control is required to interrupt or turn off ancillary devices, DC4 is the
       * preferred assignment.)
       *
       * @since 8.0
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

        service.notifyStarted();
        assertEquals(State.RUNNING, service.state());
        assertTrue(service.isRunning());
        assertFalse(service.doStopCalled);
    
        service.notifyStopped();
        assertEquals(State.TERMINATED, service.state());
        assertFalse(service.isRunning());
        assertFalse(service.doStopCalled);
      }
    
      /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

      public void testEnqueueAndDispatch_multithreaded() throws InterruptedException {
        Object listener = new Object();
        ExecutorService service = Executors.newFixedThreadPool(4);
        ListenerCallQueue<Object> queue = new ListenerCallQueue<>();
        try {
          queue.addListener(listener, service);
    
          final CountDownLatch latch = new CountDownLatch(1);
          Multiset<Object> counters = ConcurrentHashMultiset.create();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

       * ({@code this}) will be cancelled and interrupted.
       *
       * @param timeout when to time out the future
       * @param unit the time unit of the time parameter
       * @param scheduledExecutor The executor service to enforce the timeout.
       */
      @J2ktIncompatible
      @GwtIncompatible // ScheduledExecutorService
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public final FluentFuture<V> withTimeout(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
Back to top