- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 303 for consumer (0.05 sec)
-
samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java
} @Override public void onResponse(Call call, Response response) throws IOException { try (ResponseBody body = response.body()) { // Consume and discard the response body. body.source().readByteString(); } } }); Request newYorkTimesRequest = new Request.Builder() .url("https://www.nytimes.com/")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 16 23:20:49 UTC 2020 - 6.1K bytes - Viewed (0) -
guava/src/com/google/common/io/CharStreams.java
* or all lines have been read and returning the result produced by the processor. Does not close * {@code readable}. Note that this method may not fully consume the contents of {@code readable} * if the processor stops processing early. * * @throws IOException if an I/O error occurs * @since 14.0 */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 30 17:25:01 UTC 2025 - 10.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/TestLogHandler.java
synchronized (lock) { list.clear(); } } /** Returns a snapshot of the logged records. */ /* * TODO(cpovirk): consider higher-level APIs here (say, assertNoRecordsLogged(), * getOnlyRecordLogged(), getAndClearLogRecords()...) * * TODO(cpovirk): consider renaming this method to reflect that it takes a snapshot (and/or return * an ImmutableList) */ public List<LogRecord> getStoredLogRecords() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.8K bytes - Viewed (0) -
docs/features/events.md
System.out.println("REQUEST 1 (new connection)"); try (Response response = client.newCall(request).execute()) { // Consume and discard the response body. response.body().source().readByteString(); } System.out.println("REQUEST 2 (pooled connection)"); try (Response response = client.newCall(request).execute()) { // Consume and discard the response body. response.body().source().readByteString(); } ```
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 7.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableBiMap.java
} /** * Not supported. Use {@link #toImmutableBiMap} instead. This method exists only to hide {@link * ImmutableMap#toImmutableMap(Function, Function)} from consumers of {@code ImmutableBiMap}. * * @throws UnsupportedOperationException always * @deprecated Use {@link ImmutableBiMap#toImmutableBiMap(Function, Function)}. * @since 33.2.0 (available since 21.0 in guava-jre)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 22.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/TopKSelector.java
} /** * Adds each member of {@code elements} as a candidate for the top {@code k} elements. This * operation takes amortized linear time in the length of {@code elements}. The iterator is * consumed after this operation completes. * * <p>If all input data to this {@code TopKSelector} is in a single {@code Iterator}, prefer * {@link Ordering#leastOf(Iterator, int)}, which provides a simpler API for that use case.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 31 13:15:26 UTC 2025 - 11.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
* <p>To get the only element in a single-element {@code Iterable}, consider using {@link * #getOnlyElement(Iterable)} or {@link #getOnlyElement(Iterable, Object)} instead. * * <p><b>{@code Stream} equivalent:</b> {@code stream.findFirst().orElse(defaultValue)} * * <p><b>Java 21+ users:</b> if {code iterable} is a {@code SequencedCollection} (e.g., any list),
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 43.6K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.28.md
- Dynamic resource allocation: when a claim uses "wait for first consumer" allocation (the default), then it will now get deallocated after it was used by a pod. That ensures that the next pod isn't affected by previous scheduling decision and that resources are not kept allocated unless really needed. If keeping a claim...
Registered: Fri Sep 05 09:05:11 UTC 2025 - Last Modified: Wed Oct 23 20:13:20 UTC 2024 - 456.9K bytes - Viewed (1) -
android/guava/src/com/google/common/cache/ForwardingLoadingCache.java
@CanIgnoreReturnValue // TODO(b/27479612): consider removing this @Override public V get(K key) throws ExecutionException { return delegate().get(key); } @CanIgnoreReturnValue // TODO(b/27479612): consider removing this @Override public V getUnchecked(K key) { return delegate().getUnchecked(key); } @CanIgnoreReturnValue // TODO(b/27479612): consider removing this @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 2.9K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractListeningExecutorService.java
*/ @CanIgnoreReturnValue // TODO(kak): consider removing this @Override protected final <T extends @Nullable Object> RunnableFuture<T> newTaskFor(Callable<T> callable) { return TrustedListenableFutureTask.create(callable); } @CanIgnoreReturnValue // TODO(kak): consider removing this @Override public ListenableFuture<?> submit(Runnable task) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 17:47:46 UTC 2025 - 3K bytes - Viewed (0)