Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for ofMinutes (0.06 seconds)

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

      }
    
      public void testAwaitTermination() throws Exception {
        boolean result = executorService.awaitTermination(Duration.ofMinutes(144));
    
        assertThat(result).isTrue();
        assertThat(recordedTimeUnit).isEqualTo(NANOSECONDS);
        assertThat(Duration.ofNanos(recordedTimeout)).isEqualTo(Duration.ofMinutes(144));
      }
    
      private class FakeExecutorService extends AbstractListeningExecutorService {
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/ListeningScheduledExecutorServiceTest.java

        ListenableScheduledFuture<String> future =
            executorService.schedule(callable, Duration.ofMinutes(12));
    
        assertThat(future.get()).isEqualTo("hello");
        assertThat(recordedTimeUnit).isEqualTo(NANOSECONDS);
        assertThat(Duration.ofNanos(recordedDelay)).isEqualTo(Duration.ofMinutes(12));
      }
    
      public void testScheduleAtFixedRate() throws Exception {
        Runnable command = () -> {};
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  3. src/main/java/jcifs/util/AuthenticationRateLimiter.java

        private final AtomicLong totalIpsBlocked = new AtomicLong(0);
    
        /**
         * Create rate limiter with default settings
         */
        public AuthenticationRateLimiter() {
            this(5, 10, 100, Duration.ofMinutes(30), Duration.ofMinutes(5));
        }
    
        /**
         * Create rate limiter with custom settings
         *
         * @param maxAttemptsPerAccount max failed attempts per account before lockout
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  4. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

                    5, // max attempts per IP
                    20, // max global attempts per minute
                    Duration.ofSeconds(2), // short lockout for testing
                    Duration.ofMinutes(1) // cleanup interval
            );
        }
    
        @AfterEach
        public void tearDown() {
            if (rateLimiter != null) {
                rateLimiter.close();
            }
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/cache/CacheBuilder.java

     *
     * <p>Usage example:
     *
     * {@snippet :
     * LoadingCache<Key, Graph> graphs = CacheBuilder.newBuilder()
     *     .maximumSize(10000)
     *     .expireAfterWrite(Duration.ofMinutes(10))
     *     .removalListener(MY_LISTENER)
     *     .build(
     *         new CacheLoader<Key, Graph>() {
     *           public Graph load(Key key) throws AnyException {
     *             return createExpensiveGraph(key);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 52K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

                            .withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger(SmbFileIntegrationTest.class)))
                            .waitingFor(Wait.forListeningPorts(SMB_PORT).withStartupTimeout(Duration.ofMinutes(2)));
                } catch (IOException e) {
                    throw new RuntimeException("Failed to setup test directories", e);
                }
            } else {
                sambaContainer = null;
            }
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 56K bytes
    - Click Count (0)
  7. guava/src/com/google/common/cache/CacheBuilder.java

     *
     * <p>Usage example:
     *
     * {@snippet :
     * LoadingCache<Key, Graph> graphs = CacheBuilder.newBuilder()
     *     .maximumSize(10000)
     *     .expireAfterWrite(Duration.ofMinutes(10))
     *     .removalListener(MY_LISTENER)
     *     .build(
     *         new CacheLoader<Key, Graph>() {
     *           public Graph load(Key key) throws AnyException {
     *             return createExpensiveGraph(key);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 51.7K bytes
    - Click Count (0)
Back to Top