Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 308 for State (0.01 sec)

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

        RateLimiter limiter = RateLimiter.create(2.0, 4000, MILLISECONDS, 3.0, stopwatch);
        for (int i = 0; i < 8; i++) {
          limiter.acquire(); // // #1
        }
        stopwatch.sleepMillis(4500); // #2: back to cold state (warmup period + repay last acquire)
        for (int i = 0; i < 3; i++) { // only three steps, we're somewhere in the warmup period
          limiter.acquire(); // #3
        }
    
        limiter.setRate(4.0); // double the rate!
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/ServiceManagerBridge.java

    import com.google.common.util.concurrent.Service.State;
    
    /**
     * Superinterface of {@link ServiceManager} to introduce a bridge method for {@code
     * servicesByState()}, to ensure binary compatibility with older Guava versions that specified
     * {@code servicesByState()} to return {@code ImmutableMultimap}.
     */
    @J2ktIncompatible
    @GwtIncompatible
    interface ServiceManagerBridge {
      ImmutableMultimap<State, Service> servicesByState();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/MoreCollectors.java

          Collector.<@Nullable Object, ToOptionalState, @Nullable Object>of(
              ToOptionalState::new,
              (state, o) -> state.add((o == null) ? NULL_PLACEHOLDER : o),
              ToOptionalState::combine,
              state -> {
                Object result = state.getElement();
                return (result == NULL_PLACEHOLDER) ? null : result;
              },
              Collector.Characteristics.UNORDERED);
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TableCollectors.java

        return Collector.of(
            ImmutableTableCollectorState<R, C, V>::new,
            (state, input) ->
                state.put(
                    rowFunction.apply(input),
                    columnFunction.apply(input),
                    valueFunction.apply(input),
                    mergeFunction),
            (s1, s2) -> s1.combine(s2, mergeFunction),
            state -> state.toTable());
      }
    
      static <
              T extends @Nullable Object,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/exception/JobProcessingExceptionTest.java

            final Exception outerCause = new IllegalStateException("State error", innerCause);
            final JobProcessingException exception = new JobProcessingException(outerCause);
    
            assertNotNull(exception.getMessage());
            assertTrue(exception.getMessage().contains("IllegalStateException"));
            assertTrue(exception.getMessage().contains("State error"));
        }
    
        public void test_constructor_withLongMessage() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/SipHashFunction.java

        // The number of compression rounds.
        private final int c;
        // The number of finalization rounds.
        private final int d;
    
        // Four 64-bit words of internal state.
        // The initial state corresponds to the ASCII string "somepseudorandomlygeneratedbytes",
        // big-endian encoded. There is nothing special about this value; the only requirement
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

      }
    
      public void testBuildMutate() {
        ThreadFactory factory1 = builder.setPriority(1).build();
        assertEquals(1, factory1.newThread(monitoredRunnable).getPriority());
    
        builder.setPriority(2); // change the state of the builder
        assertEquals(1, factory1.newThread(monitoredRunnable).getPriority());
      }
    
      public void testThreadFactory() throws InterruptedException {
        String THREAD_NAME = "ludicrous speed";
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ServiceManagerBridge.java

    import com.google.common.util.concurrent.Service.State;
    
    /**
     * Superinterface of {@link ServiceManager} to introduce a bridge method for {@code
     * servicesByState()}, to ensure binary compatibility with older Guava versions that specified
     * {@code servicesByState()} to return {@code ImmutableMultimap}.
     */
    @J2ktIncompatible
    @GwtIncompatible
    interface ServiceManagerBridge {
      ImmutableMultimap<State, Service> servicesByState();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/pager/UserPager.java

        public String[] groups;
    
        /** Version number for optimistic locking */
        public String versionNo;
    
        /**
         * Clears all pagination state and search criteria.
         * Resets the pager to its initial state with default values.
         */
        public void clear() {
            allRecordCount = 0;
            allPageCount = 0;
            existPrePage = false;
            existNextPage = false;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exception/CommandExecutionExceptionTest.java

            Throwable cause = new IllegalStateException("Invalid state");
            CommandExecutionException exception = new CommandExecutionException(message, cause);
    
            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
            assertEquals(cause, exception.getCause());
            assertEquals("Invalid state", exception.getCause().getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.2K bytes
    - Viewed (0)
Back to top