- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for ofMillis (0.05 sec)
-
android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java
assertEquals(0, ticker.read()); assertSame(ticker, ticker.advance(10)); assertEquals(10, ticker.read()); ticker.advance(1, MILLISECONDS); assertEquals(1000010L, ticker.read()); ticker.advance(Duration.ofMillis(1)); assertEquals(2000010L, ticker.read()); } public void testAutoIncrementStep_returnsSameInstance() { FakeTicker ticker = new FakeTicker();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 22 13:49:09 UTC 2024 - 6.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/SuppliersTest.java
CountingSupplier countingSupplier = new CountingSupplier(); Supplier<Integer> memoizedSupplier = Suppliers.memoizeWithExpiration(countingSupplier, Duration.ofMillis(75)); checkExpiration(countingSupplier, memoizedSupplier); } @SuppressWarnings("DoNotCall") public void testMemoizeWithExpiration_longTimeUnitNegative() throws InterruptedException {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/SuppliersTest.java
CountingSupplier countingSupplier = new CountingSupplier(); Supplier<Integer> memoizedSupplier = Suppliers.memoizeWithExpiration(countingSupplier, Duration.ofMillis(75)); checkExpiration(countingSupplier, memoizedSupplier); } @SuppressWarnings("DoNotCall") public void testMemoizeWithExpiration_longTimeUnitNegative() throws InterruptedException {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java
ImmutableMap<Service, Duration> startupTimes = serviceManager.startupDurations(); assertThat(startupTimes).hasSize(2); assertThat(startupTimes.get(a)).isAtLeast(Duration.ofMillis(150)); assertThat(startupTimes.get(b)).isAtLeast(Duration.ofMillis(353)); } public void testServiceStartupTimes_selfStartingServices() { // This tests to ensure that:
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 25.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java
} ftpClient.setAutodetectUTF8(autodetectEncoding); ftpClient.setConnectTimeout(connectTimeout); ftpClient.setDataTimeout(Duration.ofMillis(dataTimeout)); ftpClient.setControlEncoding(controlEncoding); ftpClient.setBufferSize(bufferSize); if (passiveNatWorkaround) {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:41:37 UTC 2024 - 25.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ServiceManager.java
@IgnoreJRERequirement public ImmutableMap<Service, Duration> startupDurations() { return ImmutableMap.copyOf( Maps.<Service, Long, Duration>transformValues(startupTimes(), Duration::ofMillis)); } @Override public String toString() { return MoreObjects.toStringHelper(ServiceManager.class) .add("services", Collections2.filter(services, not(instanceOf(NoOpService.class))))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 33.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ServiceManager.java
*/ @J2ObjCIncompatible public ImmutableMap<Service, Duration> startupDurations() { return ImmutableMap.copyOf( Maps.<Service, Long, Duration>transformValues(startupTimes(), Duration::ofMillis)); } @Override public String toString() { return MoreObjects.toStringHelper(ServiceManager.class) .add("services", Collections2.filter(services, not(instanceOf(NoOpService.class))))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 33.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java
} if (isLongTimeUnitBased(method)) { arguments.add(timeout.millis); arguments.add(TimeUnit.MILLISECONDS); } if (isDurationBased(method)) { arguments.add(Duration.ofMillis(timeout.millis)); } try { Object result; doingCallLatch.countDown(); try { result = method.invoke(monitor, arguments.toArray()); } finally {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 27.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java
} if (isLongTimeUnitBased(method)) { arguments.add(timeout.millis); arguments.add(TimeUnit.MILLISECONDS); } if (isDurationBased(method)) { arguments.add(Duration.ofMillis(timeout.millis)); } try { Object result; doingCallLatch.countDown(); try { result = method.invoke(monitor, arguments.toArray()); } finally {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:18:12 UTC 2024 - 27.1K bytes - Viewed (0)