Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 129 for Relay (0.02 sec)

  1. src/main/java/jcifs/Configuration.java

         *
         * @return the registration timeout
         */
        long getWitnessRegistrationTimeout();
    
        /**
         * Gets the witness reconnect delay in milliseconds.
         *
         * @return the reconnect delay
         */
        long getWitnessReconnectDelay();
    
        /**
         * Gets whether witness service discovery is enabled.
         *
         * @return true if discovery is enabled
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

     *
     * This test uses [TaskFaker] to deterministically test racy code. Each function in this test has
     * the same structure:
     *
     *  * prepare a set of plans, each with a predictable connect delay
     *  * attempt to find a connection
     *  * step through time, asserting that the expected side effects are performed.
     */
    internal class FastFallbackExchangeFinderTest {
      private val taskFaker = TaskFaker()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

                            log.debug("Change notification failed for: " + handle.getDirectoryPath(), e);
                            incrementFailureCount(handle);
                            // Exponential backoff with max 8 seconds delay (up to MAX_RETRY_DELAY)
                            try {
                                long retryDelay = Math.min(MAX_RETRY_DELAY,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        private TestCondition(Lock lock, Condition condition) {
          this.lock = lock;
          this.condition = condition;
        }
    
        static TestCondition createAndSignalAfter(long delay, TimeUnit unit) {
          TestCondition testCondition = create();
    
          ScheduledExecutorService scheduledPool = newScheduledThreadPool(1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        boolean longWait = NANOSECONDS.toSeconds(thread.timeSpentBlocked) >= 5;
        // Count how long it actually took to return; we'll accept any number between the expected delay
        // and the approximate actual delay, to be robust to variance in thread scheduling.
        char overWaitNanosFirstDigit =
            Long.toString(thread.timeSpentBlocked - MILLISECONDS.toNanos(longWait ? 5000 : 3000))
                .charAt(0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

                                    localFailures = 0; // Reset on success
                                }
    
                                Thread.sleep(5); // Small delay to spread out requests
                            }
                            successfulThreads.incrementAndGet();
                        } catch (Exception e) {
                            exceptionCount.incrementAndGet();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/SecureKeyManagerTest.java

            Thread.sleep(200);
    
            long laterAge = keyManager.getKeyAge(sessionId);
            assertTrue(laterAge >= 200, "Age should increase after delay");
        }
    
        @Test
        public void testKeyAgeNonExistent() {
            assertEquals(-1, keyManager.getKeyAge("non-existent"), "Non-existent key should return -1 for age");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            assertEquals(1.0, noRetryPolicy.getBackoffMultiplier());
            assertFalse(noRetryPolicy.isExponentialBackoff());
        }
    
        @Test
        @DisplayName("Should limit retry delay to maximum")
        void testMaxDelayLimit() {
            // Given
            SmbOperationException.RetryPolicy policy = new SmbOperationException.RetryPolicy(10, 1000, 5000, 2.0, true);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

      private void assertEvents(String... events) {
        assertEquals(Arrays.toString(events), stopwatch.readEventsAndClear());
      }
    
      /**
       * The stopwatch gathers events and presents them as strings. R0.6 means a delay of 0.6 seconds
       * caused by the (R)ateLimiter U1.0 means the (U)ser caused the stopwatch to sleep for a second.
       */
      static class FakeStopwatch extends SleepingStopwatch {
        long instant = 0L;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

      private void assertEvents(String... events) {
        assertEquals(Arrays.toString(events), stopwatch.readEventsAndClear());
      }
    
      /**
       * The stopwatch gathers events and presents them as strings. R0.6 means a delay of 0.6 seconds
       * caused by the (R)ateLimiter U1.0 means the (U)ser caused the stopwatch to sleep for a second.
       */
      static class FakeStopwatch extends SleepingStopwatch {
        long instant = 0L;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
Back to top