Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 109 for Instant (0.03 sec)

  1. src/main/java/jcifs/util/AuthenticationRateLimiter.java

            private volatile Instant lastAttempt = Instant.now();
            private volatile Instant windowStart = Instant.now();
            private volatile Instant blockExpiry = null;
            private final AtomicBoolean blocked = new AtomicBoolean(false);
    
            void recordAttempt() {
                Instant now = Instant.now();
    
                // Reset window if more than 1 minute has passed
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Headers.kt

        ) = add(name, value.toHttpDateString())
    
        /**
         * Add a header with the specified name and formatted instant. Does validation of header names
         * and value.
         */
        @IgnoreJRERequirement // Only programs that already have Instant will use this.
        fun add(
          name: String,
          value: Instant,
        ) = add(name, Date.from(value))
    
        /**
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        long instant = 0L;
        final List<String> events = new ArrayList<>();
    
        @Override
        public long readMicros() {
          return NANOSECONDS.toMicros(instant);
        }
    
        void sleepMillis(int millis) {
          sleepMicros("U", MILLISECONDS.toMicros(millis));
        }
    
        void sleepMicros(String caption, long micros) {
          instant += MICROSECONDS.toNanos(micros);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        long instant = 0L;
        final List<String> events = new ArrayList<>();
    
        @Override
        public long readMicros() {
          return NANOSECONDS.toMicros(instant);
        }
    
        void sleepMillis(int millis) {
          sleepMicros("U", MILLISECONDS.toMicros(millis));
        }
    
        void sleepMicros(String caption, long micros) {
          instant += MICROSECONDS.toNanos(micros);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/audit/SecurityAuditLogger.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.audit;
    
    import java.time.Instant;
    import java.time.format.DateTimeFormatter;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.Queue;
    import java.util.concurrent.BlockingQueue;
    import java.util.concurrent.ConcurrentHashMap;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

      @Test
      fun headers() {
        var headers: Headers = headersOf("", "")
        headers = mapOf("" to "").toHeaders()
        val get: String? = headers[""]
        val date: Date? = headers.getDate("")
        val instant: Instant? = headers.getInstant("")
        val size: Int = headers.size
        val name: String = headers.name(0)
        val value: String = headers.value(0)
        val names: Set<String> = headers.names()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 47K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/SystemHelper.java

         *
         * @return The current time.
         */
        public LocalDateTime getCurrentTimeAsLocalDateTime() {
            final Instant instant = Instant.ofEpochMilli(getCurrentTimeAsLong());
            return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
        }
    
        /**
         * Gets the path to the log file.
         *
         * @return The log file path.
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 08:30:43 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.suggest.entity;
    
    import java.time.Clock;
    import java.time.Instant;
    import java.time.ZonedDateTime;
    import java.time.format.DateTimeFormatter;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.List;
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/Constants.java

        /** String constant representing boolean true value. */
        public static final String TRUE = "true";
    
        /** String constant representing boolean false value. */
        public static final String FALSE = "false";
    
        /** Boolean constant representing true value. */
        public static final Boolean T = true;
    
        /** Boolean constant representing false value. */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/FileNotifyInformationTest.java

        class FilterFlagsTests {
    
            @Test
            @DisplayName("Verify FILE_NOTIFY_CHANGE_FILE_NAME constant value")
            void testFileNotifyChangeFileName() {
                assertEquals(0x00000001, FileNotifyInformation.FILE_NOTIFY_CHANGE_FILE_NAME);
            }
    
            @Test
            @DisplayName("Verify FILE_NOTIFY_CHANGE_DIR_NAME constant value")
            void testFileNotifyChangeDirName() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
Back to top