|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2000, 2021, Oracle and/or its affiliates. |
| 2 | + * Copyright (c) 2000, 2025, Oracle and/or its affiliates. |
3 | 3 | *
|
4 | 4 | * Licensed under the Universal Permissive License v 1.0 as shown at
|
5 |
| - * http://oss.oracle.com/licenses/upl. |
| 5 | + * https://oss.oracle.com/licenses/upl. |
6 | 6 | */
|
7 | 7 |
|
8 | 8 | package com.tangosol.net.cache;
|
|
30 | 30 | * an implementation to suggest to Coherence that no further processing will occur for the
|
31 | 31 | * relevant operation. Below is an example implementation:
|
32 | 32 | * <pre><code>
|
33 |
| - * public void loadAll(Set<? extends BinaryEntry<K, V>> setBinEntries, StoreObserver<K, V> observer) |
| 33 | + * public void loadAll(Set<? extends BinaryEntry<K, V>> setBinEntries, StoreObserver<K, V> observer) |
34 | 34 | * {
|
35 | 35 | * SomeReactiveResource resource;
|
36 |
| - * for (BinaryEntry<K, V> binEntry : setBinEntries) |
| 36 | + * for (BinaryEntry<K, V> binEntry : setBinEntries) |
37 | 37 | * {
|
38 |
| - * CompletableFuture<V> future = resource.get(binEntry.getKey); |
| 38 | + * CompletableFuture<V> future = resource.get(binEntry.getKey); |
39 | 39 | * future.whenComplete((value, exception) ->
|
40 | 40 | * {
|
41 | 41 | * if (exception == null)
|
|
48 | 48 | * observer.onError(binEntry, exception))
|
49 | 49 | * if (isTerminal(exception))
|
50 | 50 | * {
|
51 |
| - * // no futher processing will be possible as resource |
| 51 | + * // no further processing will be possible as resource |
52 | 52 | * // is terminally unavailable and assume futures will
|
53 | 53 | * // not be fired
|
54 | 54 | * observer.onComplete();
|
|
60 | 60 | * </code></pre>
|
61 | 61 | * Some additional notes on calling {@link StoreObserver#onComplete()}:
|
62 | 62 | * <ul>
|
63 |
| - * <li>The StoreObserver instance will throw a IllegalStateExcpetion on |
| 63 | + * <li>The StoreObserver instance will throw a IllegalStateException on |
64 | 64 | * any future calls to {@link StoreObserver#onNext onNext} or {@link StoreObserver#onError onError}.</li>
|
65 |
| - * <li>Any unprocessed entires will have their decorations removed thus store |
| 65 | + * <li>Any unprocessed entries will have their decorations removed thus store |
66 | 66 | * will not be called on failover</li>
|
67 | 67 | * </ul>
|
68 | 68 | *
|
|
0 commit comments