Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for startCountdownTimer (0.21 sec)

  1. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/Time.java

            return new DefaultTimer(TimeSource.SYSTEM);
        }
    
        public static CountdownTimer startCountdownTimer(long timeoutMillis) {
            return new DefaultCountdownTimer(TimeSource.SYSTEM, timeoutMillis, TimeUnit.MILLISECONDS);
        }
    
        public static CountdownTimer startCountdownTimer(long timeout, TimeUnit unit) {
            return new DefaultCountdownTimer(TimeSource.SYSTEM, timeout, unit);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/LegacyDaemon.groovy

            }
        }
    
        protected void waitForState(State state) {
            def timer = Time.startCountdownTimer(STATE_CHANGE_TIMEOUT)
            def lastLogState = logFileProbe.currentState
            while (!timer.hasExpired() && lastLogState != state) {
                Thread.sleep(200)
                lastLogState = logFileProbe.currentState
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 15:22:16 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/TestableDaemon.groovy

            this.registryProbe = new DaemonRegistryStateProbe(registry, context)
        }
    
        protected void waitForState(State state) {
            def timer = Time.startCountdownTimer(STATE_CHANGE_TIMEOUT)
            def lastRegistryState = registryProbe.currentState
            def lastLogState = logFileProbe.currentState
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 15:22:16 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/ExclusiveCacheAccessingWorker.java

            try {
                cacheAccess.useCache(new Runnable() {
                    @Override
                    public void run() {
                        CountdownTimer timer = Time.startCountdownTimer(maximumLockingTimeMillis, TimeUnit.MILLISECONDS);
                        if (updateOperation != null) {
                            failureHandler.onExecute(updateOperation);
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/ExponentialBackoff.java

            this.timeoutMs = timeoutMs;
            this.signal = signal;
            this.slotTime = slotTime;
            restartTimer();
        }
    
        public void restartTimer() {
            timer = Time.startCountdownTimer(timeoutMs);
        }
    
        /**
         * Retries the given query until it returns a 'sucessful' result.
         *
         * @param query which returns non-null value when successful.
         * @param <T> the result type.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:49:35 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java

         * @return null if the current build could be cancelled cleanly, otherwise the result of stopping the daemon
         */
        @Nullable
        private DaemonStopState cancelNow() {
            CountdownTimer timer = Time.startCountdownTimer(cancelTimeoutMs);
    
            LOGGER.debug("Cancel requested: will wait for daemon to become idle.");
            try {
                cancellationToken.cancel();
            } catch (Exception ex) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/ProtocolToModelAdapter.java

            // For stats we don't really care about thread safety
            private int cacheMiss;
            private int cacheHit;
            private int evict;
    
            private CountdownTimer cleanupTimer = Time.startCountdownTimer(MINIMAL_CLEANUP_INTERVAL);
    
            private static class MethodInvocationKey {
                private final SoftReference<Class<?>> lookupClass;
                private final String methodName;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 04:42:54 UTC 2024
    - 45.4K bytes
    - Viewed (0)
Back to top