- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for ofMillis (0.1 sec)
-
guava/src/com/google/common/util/concurrent/TimeLimiter.java
* DEFAULT_VALUE} if this method call takes over 50 ms, you can use this code: * * <pre> * TimeLimiter limiter = . . .; * TargetType proxy = limiter.newProxy(target, TargetType.class, Duration.ofMillis(50)); * try { * return proxy.someMethod(); * } catch (UncheckedTimeoutException e) { * return DEFAULT_VALUE; * } * </pre> * * @param target the object to proxy
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 18:32:03 UTC 2023 - 15.3K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
MockResponse.Builder() .body("Result") .build(), ) val proxiedClient = OkHttpClient.Builder() .proxy(server.toProxyAddress()) .readTimeout(Duration.ofMillis(100)) .build() val request = Request.Builder().url("http://android.com/").build() proxiedClient.newCall(request).execute().use { response -> assertThat(response.body.string()).isEqualTo("Result")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 23.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
server.enqueue(MockResponse(body = "success!")) client = client.newBuilder() .proxySelector(proxySelector) .readTimeout(Duration.ofMillis(100)) .connectTimeout(Duration.ofMillis(100)) .build() val request = Request.Builder().url("http://android.com/").build() executeSynchronously(request) .assertCode(200) .assertBody("success!")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.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) -
okhttp/src/test/java/okhttp3/EventListenerTest.kt
server.enqueue( MockResponse.Builder() .headersDelay(2, TimeUnit.SECONDS) .build(), ) client = client.newBuilder() .readTimeout(Duration.ofMillis(250)) .build() val call = client.newCall( Request.Builder() .url(server.url("/")) .build(), ) assertFailsWith<IOException> {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 56.9K bytes - Viewed (2) -
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) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
socket.receiveBufferSize = socketBufferSize socket.sendBufferSize = socketBufferSize return socket } }, ) .writeTimeout(Duration.ofMillis(500)) .build() server.start() server.enqueue( MockResponse.Builder() .throttleBody(1, 1, TimeUnit.SECONDS) .build(), ) // Prevent the server from reading!
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0)