Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 145 for Mickey (0.22 sec)

  1. guava-testlib/src/com/google/common/testing/FakeTicker.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Ticker;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.time.Duration;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.atomic.AtomicLong;
    
    /**
     * A Ticker whose value can be advanced programmatically in test.
     *
     * <p>The ticker can be configured so that the time is incremented whenever {@link #read} is called:
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/kerberos/KerberosApRequest.java

                        throw new PACDecodingException("Malformed Kerberos Ticket");
                    try {
                        this.ticket = new KerberosTicket(derTicket.getBaseObject().getEncoded(), this.apOptions, keys);
                    } catch (IOException e) {
                        throw new PACDecodingException("Malformed Kerberos Ticket", e);
                    }
                    break;
                case 4:
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Stopwatch.java

       *
       * @since 15.0
       */
      public static Stopwatch createStarted(Ticker ticker) {
        return new Stopwatch(ticker).start();
      }
    
      Stopwatch() {
        this.ticker = Ticker.systemTicker();
      }
    
      Stopwatch(Ticker ticker) {
        this.ticker = checkNotNull(ticker, "ticker");
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/KerberosTest.java

            }
    
            Credentials creds = builder.action().getCreds();
            builder.destroy();
    
            KerberosTicket ticket = Krb5Util.credsToTicket(creds);
            System.out.println("Ends " + ticket.getEndTime().getTime());
            return ticket;
        }
    
    
        /**
         * @param principal
         * @return
         * @throws RealmException
         */
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Mar 01 09:46:04 GMT 2020
    - 11.5K bytes
    - Viewed (0)
  5. CONTRIBUTING.md

    ```
    [MNG-XXX] - Subject of the JIRA Ticket
     Optional supplemental description.
    ```
    + Make sure you have added the necessary tests (JUnit/[Core IT tests][core-it]) for your changes.
    + Run all the tests with `mvn -Prun-its verify` to assure nothing else was accidentally broken.
    + Submit a pull request to the repository in the Apache organization.
    + Update your JIRA ticket and include a link to the pull request in the ticket.
    
    Plain Text
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sun Oct 10 09:48:27 GMT 2021
    - 4.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

      }
    
      public void testExpireAfterAccess() {
        final Cache<Integer, Integer> cache =
            CacheBuilder.newBuilder()
                .expireAfterAccess(1000, TimeUnit.MILLISECONDS)
                .ticker(fakeTicker)
                .build();
    
        cache.put(0, 10);
        cache.put(2, 30);
    
        fakeTicker.advance(999, TimeUnit.MILLISECONDS);
        assertEquals(Integer.valueOf(30), cache.getIfPresent(2));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 15.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

                .expireAfterWrite(EXPIRING_TIME, MILLISECONDS)
                .removalListener(removalListener)
                .ticker(ticker)
                .build(loader);
        checkExpiration(cache, loader, ticker, removalListener);
      }
    
      public void testExpiration_expireAfterAccess() {
        FakeTicker ticker = new FakeTicker();
        CountingRemovalListener<String, Integer> removalListener = countingRemovalListener();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/StopwatchTest.java

      }
    
      public void testElapsed_notRunning() {
        ticker.advance(1);
        stopwatch.start();
        ticker.advance(4);
        stopwatch.stop();
        ticker.advance(9);
        assertEquals(4, stopwatch.elapsed(NANOSECONDS));
      }
    
      public void testElapsed_multipleSegments() {
        stopwatch.start();
        ticker.advance(9);
        stopwatch.stop();
    
        ticker.advance(16);
    
        stopwatch.start();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. internal/crypto/doc.go

    //
    // ### SSE-S3 and KMS
    //
    // SSE-S3 requires that the KMS provides two functions:
    //
    //  1. Generate(KeyID) -> (Key, EncKey)
    //
    //  2. Unseal(KeyID, EncKey) -> Key
    //
    //  1. Encrypt:
    //     Input: KeyID, bucket, object, metadata, object_data
    //     -     Key, EncKey := Generate(KeyID)
    //     -              IV := Random({0,1}²⁵⁶)
    //     -       ObjectKey := SHA256(Key, Random({0,1}²⁵⁶))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Aug 26 19:52:29 GMT 2022
    - 5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        ticker.advance(1);
        segment.recordRead(entry, ticker.read());
        segment.expireEntries(ticker.read());
        assertTrue(map.containsKey(key));
        assertSame(entry, segment.accessQueue.peek());
        assertEquals(1, segment.accessQueue.size());
    
        ticker.advance(1);
        segment.recordRead(entry, ticker.read());
        segment.expireEntries(ticker.read());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
Back to top