Predicate to potentially invalidate the cached value whenever a late subscriber arrives.
Subscribers accumulated between the upstream susbscription is triggered and the actual value is received and stored
don't trigger the predicate, as the operator assumes that values are not invalid at reception.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static interface | MonoCacheInvalidateIf.State<
the type of data cached by the parent operator T>A state-holding interface for |
| pack-priv static class | MonoCacheInvalidateIf.ValueState<
the type of data cached by the parent operator T>Common implementation of |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final MonoCacheInvalidateIf. | EMPTY_STATE
Singleton implementation of an empty |
| pack-priv final Predicate | |
| pack-priv volatile MonoCacheInvalidateIf. | |
| pack-priv static final AtomicReferenceFieldUpdater |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| 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.
|
| EMPTY_STATE | back to summary |
|---|---|
| pack-priv static final MonoCacheInvalidateIf. Singleton implementation of an empty | |
| shouldInvalidatePredicate | back to summary |
|---|---|
| pack-priv final Predicate<? super T> shouldInvalidatePredicate | |
| state | back to summary |
|---|---|
| pack-priv volatile MonoCacheInvalidateIf. | |
| STATE | back to summary |
|---|---|
pack-priv static final AtomicReferenceFieldUpdater<MonoCacheInvalidateIf<T>, MonoCacheInvalidateIf.
| |
| MonoCacheInvalidateIf | back to summary |
|---|---|
| pack-priv MonoCacheInvalidateIf(Mono<T> source, Predicate<? super T> invalidationPredicate) | |
| 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 MonoCacheInvalidateIf. |
| 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 MonoCacheInvalidateIf. | |
| 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 MonoCacheInvalidateIf. | |
| private static final MonoCacheInvalidateIf. | |
| pack-priv boolean | |
| pack-priv final MonoCacheInvalidateIf | |
| pack-priv final Mono | |
| pack-priv volatile MonoCacheInvalidateIf. | |
| pack-priv static final AtomicReferenceFieldUpdater | |
| pack-priv volatile Subscription | |
| pack-priv static final AtomicReferenceFieldUpdater |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final 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..
|
| pack-priv void | |
| 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 MonoCacheInvalidateIf.
| |
| COORDINATOR_INIT | back to summary |
|---|---|
private static final MonoCacheInvalidateIf.
| |
| done | back to summary |
|---|---|
| pack-priv boolean done | |
| main | back to summary |
|---|---|
| pack-priv final MonoCacheInvalidateIf<T> main | |
| source | back to summary |
|---|---|
| pack-priv final Mono<? extends T> source | |
| subscribers | back to summary |
|---|---|
| pack-priv volatile MonoCacheInvalidateIf. | |
| SUBSCRIBERS | back to summary |
|---|---|
pack-priv static final AtomicReferenceFieldUpdater<MonoCacheInvalidateIf.
| |
| upstream | back to summary |
|---|---|
| pack-priv volatile Subscription upstream | |
| UPSTREAM | back to summary |
|---|---|
pack-priv static final AtomicReferenceFieldUpdater<MonoCacheInvalidateIf.
| |
| CoordinatorSubscriber | back to summary |
|---|---|
pack-priv CoordinatorSubscriber(MonoCacheInvalidateIf<T> main, Mono<? extends T> source)
| |
| add | back to summary |
|---|---|
| pack-priv final boolean add(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
| |
| delayedSubscribe | back to summary |
|---|---|
| pack-priv void delayedSubscribe() | |
| 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(MonoCacheInvalidateIf. | |
| 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 | |
MonoCacheInvalidateIf and MonoCacheInvalidateWhen,
leaner than a Signal to represent valued state, and allowing specific subclasses for pending
state and disconnected state.
| clear | back to summary |
|---|---|
| public void clear() | |
| get | back to summary |
|---|---|
public T get()
| |
State for storing the cached value.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public T |
| value | back to summary |
|---|---|
| pack-priv T value
| |
| ValueState | back to summary |
|---|---|
| pack-priv ValueState(T value) | |
| clear | back to summary |
|---|---|
| public void clear() Implements reactor.
| |
| get | back to summary |
|---|---|
| public T get() Implements reactor. | |