Deprecated
Mono (Fuseable version), assumes Micrometer is on the classpath.
Implementation Note
Metrics.isInstrumentationAvailable() test should be performed BEFORE instantiating or referencing this
class, otherwise a NoClassDefFoundError will be thrown if Micrometer is not there.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final io. | |
| pack-priv final io. |
| 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.
|
| name | back to summary |
|---|---|
| pack-priv final String name | |
| registryCandidate | back to summary |
|---|---|
| pack-priv final io. | |
| tags | back to summary |
|---|---|
| pack-priv final io. | |
| MonoMetricsFuseable | back to summary |
|---|---|
| pack-priv MonoMetricsFuseable(Mono<? extends T> mono) | |
| 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
| |
Implementation Note
we don't want to particularly track fusion-specific calls, as this subscriber would only detect fused subsequences immediately upstream of it, so Counters would be a bit irrelevant. We however want to instrument onNext counts.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv Fuseable. |
| Access | Constructor and Description |
|---|---|
| pack-priv | MetricsFuseableSubscriber(CoreSubscriber<? super T> actual, io.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements java. |
| public boolean | isEmpty()
Implements java. true if this collection contains no elements.
|
| public void | onComplete()
Overrides reactor. Implements org. |
| public void | onNext(T
the element signaled t)Overrides reactor. 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)Overrides reactor. Implements reactor. onNext(Object) before
calling Subscription#request(long).
|
| public T | poll()
Implements java. null if this queue is empty.
|
| public int | requestFusion(int
the mode requested by the intermediate operator mode)Implements reactor. |
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides reactor. Overrides default reactor. Implements reactor. |
| public int |
| mode | back to summary |
|---|---|
| pack-priv int mode | |
| qs | back to summary |
|---|---|
| pack-priv Fuseable. | |
| MetricsFuseableSubscriber | back to summary |
|---|---|
| pack-priv MetricsFuseableSubscriber(CoreSubscriber<? super T> actual, io. | |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the elements from this collection (optional operation). The collection will be empty after this method returns.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Overrides reactor. Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Overrides reactor. Implements org. Doc from org. Data notification sent by the
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Subscription s) Overrides reactor. 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
| |
| poll | back to summary |
|---|---|
| public T poll() Implements java. Doc from java. Retrieves and removes the head of this queue,
or returns | |
| requestFusion | back to summary |
|---|---|
| public int requestFusion(int mode) Implements reactor. Doc from reactor. Request a specific fusion mode from this QueueSubscription. One should request either SYNC, ASYNC or ANY modes (never NONE) and the implementor should return NONE, SYNC or ASYNC (never ANY). For example, if a source supports only ASYNC fusion but the intermediate operator supports only SYNC fuseable sources, the operator may request SYNC fusion and the source can reject it via NONE, thus the operator can return NONE as well to downstream and the fusion doesn't happen.
| |
| 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 | |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of elements in this collection. If this collection
contains more than
| |