Mono as a trigger to invalidate the cached value.
Subscribers accumulated between the upstream subscription is triggered and the actual value is received and stored
don't get impacted by the generated trigger and will immediately receive the cached value.
If after that the trigger completes immediately, the next incoming subscriber will lead to a resubscription to the
source and a new caching cycle.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Consumer | |
| pack-priv final Function | |
| private static final Logger | |
| pack-priv volatile MonoCacheInvalidateIf. | |
| pack-priv static final AtomicReferenceFieldUpdater |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides reactor. Implements reactor. |
| public CoreSubscriber | subscribeOrReturn(CoreSubscriber<? super T> actual)
Implements abstract reactor. Implements reactor. CoreSubscriber, or force
subscription encapsulation by returning null.
|
| invalidateHandler | back to summary |
|---|---|
| pack-priv final Consumer<? super T> invalidateHandler
| |
| invalidationTriggerGenerator | back to summary |
|---|---|
| pack-priv final Function<? super T, Mono<Void>> invalidationTriggerGenerator | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| state | back to summary |
|---|---|
| pack-priv volatile MonoCacheInvalidateIf. | |
| STATE | back to summary |
|---|---|
pack-priv static final AtomicReferenceFieldUpdater<MonoCacheInvalidateWhen<T>, MonoCacheInvalidateIf.
| |
| MonoCacheInvalidateWhen | back to summary |
|---|---|
| pack-priv MonoCacheInvalidateWhen(Mono<T> source, Function<? super T, Mono<Void>> invalidationTriggerGenerator, Consumer<? super T> invalidateHandler) | |
| compareAndInvalidate | back to summary |
|---|---|
| pack-priv boolean compareAndInvalidate(MonoCacheInvalidateIf. | |
| invalidate | back to summary |
|---|---|
| pack-priv void invalidate() | |
| safeInvalidateHandler | back to summary |
|---|---|
| pack-priv void safeInvalidateHandler(T value) | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Overrides reactor. Implements reactor. Doc from reactor. This method is used internally by components to define their key-value mappings
in a single place. Although it is ignoring the generic type of the
For public consumption of attributes, prefer using | |
| subscribeOrReturn | back to summary |
|---|---|
| public CoreSubscriber Implements abstract reactor. Implements reactor. Doc from reactor. Allow delegation of the subscription by returning a
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv MonoCacheInvalidateWhen. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Overrides reactor. Implements org. Publisher to stop sending data and clean up resources.
|
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides reactor. Overrides default reactor. Implements reactor. |
| coordinator | back to summary |
|---|---|
| pack-priv MonoCacheInvalidateWhen. | |
| CacheMonoSubscriber | back to summary |
|---|---|
| pack-priv CacheMonoSubscriber(CoreSubscriber<? super T> actual) | |
| cancel | back to summary |
|---|---|
| public void cancel() Overrides reactor. Implements org. Doc from org. Request the Data may still be sent to meet previously signalled demand after calling cancel.
| |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Overrides reactor. Overrides default reactor. Implements reactor. Doc from reactor. This method is used internally by components to define their key-value mappings
in a single place. Although it is ignoring the generic type of the
For public consumption of attributes, prefer using | |
| Modifier and Type | Field and Description |
|---|---|
| private static final MonoCacheInvalidateWhen. | |
| private static final MonoCacheInvalidateWhen. | |
| pack-priv final MonoCacheInvalidateWhen | |
| pack-priv volatile MonoCacheInvalidateWhen. | |
| pack-priv static final AtomicReferenceFieldUpdater | |
| pack-priv Subscription |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final boolean | |
| pack-priv void | |
| pack-priv boolean | |
| public void | clear()
Implements reactor. State interface is only
implemented for use in the main's STATE compareAndSet.
|
| public Context | currentContext()
Overrides default reactor. Context from dependent components which can include downstream
operators during subscribing or a terminal org..
|
| public T | get()
Implements reactor. State interface is only
implemented for use in the main's STATE compareAndSet.
|
| public void | |
| public void | onError(Throwable
the throwable signaled t)Implements org. |
| public void | onNext(T
the element signaled t)Implements org. Publisher in response to requests to Subscription#request(long).
|
| public void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements reactor. onNext(Object) before
calling Subscription#request(long).
|
| pack-priv final void | |
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Implements reactor. |
| COORDINATOR_DONE | back to summary |
|---|---|
private static final MonoCacheInvalidateWhen.
| |
| COORDINATOR_INIT | back to summary |
|---|---|
private static final MonoCacheInvalidateWhen.
| |
| main | back to summary |
|---|---|
| pack-priv final MonoCacheInvalidateWhen<T> main | |
| subscribers | back to summary |
|---|---|
| pack-priv volatile MonoCacheInvalidateWhen. | |
| SUBSCRIBERS | back to summary |
|---|---|
pack-priv static final AtomicReferenceFieldUpdater<MonoCacheInvalidateWhen.
| |
| subscription | back to summary |
|---|---|
| pack-priv Subscription subscription | |
| CoordinatorSubscriber | back to summary |
|---|---|
pack-priv CoordinatorSubscriber(MonoCacheInvalidateWhen<T> main)
| |
| add | back to summary |
|---|---|
| pack-priv final boolean add(MonoCacheInvalidateWhen. | |
| cacheLoad | back to summary |
|---|---|
| pack-priv void cacheLoad(T value) | |
| cacheLoadFailure | back to summary |
|---|---|
| pack-priv boolean cacheLoadFailure(MonoCacheInvalidateIf. | |
| clear | back to summary |
|---|---|
| public void clear() Implements reactor. unused in this context as the
| |
| currentContext | back to summary |
|---|---|
| public Context currentContext() Overrides default reactor. Doc from reactor. Request a
| |
| get | back to summary |
|---|---|
| public T get() Implements reactor. unused in this context as the | |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements org. Doc from org. Failed terminal state.
No further events will be sent even if | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements org. Doc from org. Data notification sent by the
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Subscription s) Implements reactor. Doc from reactor. Implementors should initialize any state used by
Note that an invalid request
No data will start flowing until
It is the responsibility of this
The
| |
| remove | back to summary |
|---|---|
| pack-priv final void remove(MonoCacheInvalidateWhen. | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Implements reactor. Doc from reactor. This method is used internally by components to define their key-value mappings
in a single place. Although it is ignoring the generic type of the
For public consumption of attributes, prefer using | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final MonoCacheInvalidateWhen |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Context | currentContext()
Overrides default reactor. Context from dependent components which can include downstream
operators during subscribing or a terminal org..
|
| public void | |
| public void | onError(Throwable
the throwable signaled t)Implements org. |
| public void | onNext(Void
the element signaled unused)Implements org. Publisher in response to requests to Subscription#request(long).
|
| public void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements reactor. onNext(Object) before
calling Subscription#request(long).
|
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Implements reactor. |
| main | back to summary |
|---|---|
| pack-priv final MonoCacheInvalidateWhen<?> main | |
| TriggerSubscriber | back to summary |
|---|---|
| pack-priv TriggerSubscriber(MonoCacheInvalidateWhen<?> main) | |
| currentContext | back to summary |
|---|---|
| public Context currentContext() Overrides default reactor. Doc from reactor. Request a
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements org. Doc from org. Failed terminal state.
No further events will be sent even if | |
| onNext | back to summary |
|---|---|
| public void onNext(Void unused) Implements org. Doc from org. Data notification sent by the | |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Subscription s) Implements reactor. Doc from reactor. Implementors should initialize any state used by
Note that an invalid request
No data will start flowing until
It is the responsibility of this
The
| |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Implements reactor. Doc from reactor. This method is used internally by components to define their key-value mappings
in a single place. Although it is ignoring the generic type of the
For public consumption of attributes, prefer using | |