Deprecated
Flux, assuming 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 static final io. | DEFAULT_TAGS_FLUX
Tag bearing the sequence's name, as given by the |
| pack-priv static final io. | |
| pack-priv static final Logger | |
| pack-priv static final String | METER_FLOW_DURATION
Meter that times the duration elapsed between a subscription and the termination or cancellation of the sequence. |
| pack-priv static final String | METER_MALFORMED
Meter that counts the number of events received from a malformed source (ie an onNext after an onComplete). |
| pack-priv static final String | METER_ON_NEXT_DELAY
Meter that times the delays between each onNext (or between the first onNext and the onSubscribe event). |
| pack-priv static final String | METER_REQUESTED
Meter that tracks the request amount, in |
| pack-priv static final String | METER_SUBSCRIBED
Meter that counts the number of subscriptions to a sequence. |
| pack-priv final String | |
| pack-priv static final String | REACTOR_DEFAULT_NAME
The default sequence name that will be used for instrumented |
| pack-priv final io. | |
| pack-priv static final io. | |
| pack-priv static final String | TAG_KEY_EXCEPTION
Tag used by |
| pack-priv static final io. | |
| pack-priv static final io. | |
| pack-priv static final io. | |
| pack-priv final io. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | recordCancel(String name, io.
|
| pack-priv static void | recordMalformed(String name, io.
|
| pack-priv static void | recordOnComplete(String name, io.
|
| pack-priv static void | recordOnCompleteEmpty(String name, io.
|
| pack-priv static void | recordOnError(String name, io.
|
| pack-priv static void | recordOnSubscribe(String name, io.
|
| pack-priv static String | Returns: a namethe upstream source)Extract the name from the upstream, and detect if there was an actual name (ie. |
| pack-priv static io. | resolveTags(Publisher<?>
the upstream source, io.Extract the tags from the upstream |
| 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.
|
| DEFAULT_TAGS_FLUX | back to summary |
|---|---|
| pack-priv static final io. Tag bearing the sequence's name, as given by the | |
| DEFAULT_TAGS_MONO | back to summary |
|---|---|
| pack-priv static final io. | |
| log | back to summary |
|---|---|
| pack-priv static final Logger log | |
| METER_FLOW_DURATION | back to summary |
|---|---|
| pack-priv static final String METER_FLOW_DURATION Meter that times the duration elapsed between a subscription and the termination or cancellation of the sequence. A status tag is added to specify what event caused the timer to end (completed, completedEmpty, error, cancelled). | |
| METER_MALFORMED | back to summary |
|---|---|
| pack-priv static final String METER_MALFORMED Meter that counts the number of events received from a malformed source (ie an onNext after an onComplete). | |
| METER_ON_NEXT_DELAY | back to summary |
|---|---|
| pack-priv static final String METER_ON_NEXT_DELAY Meter that times the delays between each onNext (or between the first onNext and the onSubscribe event). | |
| METER_REQUESTED | back to summary |
|---|---|
| pack-priv static final String METER_REQUESTED Meter that tracks the request amount, in | |
| METER_SUBSCRIBED | back to summary |
|---|---|
| pack-priv static final String METER_SUBSCRIBED Meter that counts the number of subscriptions to a sequence. | |
| name | back to summary |
|---|---|
| pack-priv final String name | |
| REACTOR_DEFAULT_NAME | back to summary |
|---|---|
| pack-priv static final String REACTOR_DEFAULT_NAME The default sequence name that will be used for instrumented | |
| registryCandidate | back to summary |
|---|---|
| pack-priv final io. | |
| TAG_CANCEL | back to summary |
|---|---|
| pack-priv static final io. | |
| TAG_KEY_EXCEPTION | back to summary |
|---|---|
| pack-priv static final String TAG_KEY_EXCEPTION Tag used by | |
| TAG_ON_COMPLETE | back to summary |
|---|---|
| pack-priv static final io. | |
| TAG_ON_COMPLETE_EMPTY | back to summary |
|---|---|
| pack-priv static final io. | |
| TAG_ON_ERROR | back to summary |
|---|---|
| pack-priv static final io. | |
| tags | back to summary |
|---|---|
| pack-priv final io. | |
| FluxMetrics | back to summary |
|---|---|
| pack-priv FluxMetrics(Flux<? extends T> flux) | |
| recordCancel | back to summary |
|---|---|
| pack-priv static void recordCancel(String name, io. | |
| recordMalformed | back to summary |
|---|---|
| pack-priv static void recordMalformed(String name, io. | |
| recordOnComplete | back to summary |
|---|---|
| pack-priv static void recordOnComplete(String name, io. | |
| recordOnCompleteEmpty | back to summary |
|---|---|
| pack-priv static void recordOnCompleteEmpty(String name, io. | |
| recordOnError | back to summary |
|---|---|
| pack-priv static void recordOnError(String name, io. | |
| recordOnSubscribe | back to summary |
|---|---|
| pack-priv static void recordOnSubscribe(String name, io. | |
| resolveName | back to summary |
|---|---|
| pack-priv static String resolveName(Publisher<?> source) Extract the name from the upstream, and detect if there was an actual name (ie. distinct from | |
| resolveTags | back to summary |
|---|---|
| pack-priv static io. Extract the tags from the upstream | |
| 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 final CoreSubscriber | |
| pack-priv final io. | |
| pack-priv final io. | |
| pack-priv boolean | |
| pack-priv long | |
| pack-priv final io. | |
| pack-priv final io. | |
| pack-priv final io. | |
| pack-priv Subscription | |
| pack-priv final String | |
| pack-priv io. |
| Access | Constructor and Description |
|---|---|
| pack-priv | MetricsSubscriber(CoreSubscriber<? super T> actual, io.
|
| Modifier and Type | Method and Description |
|---|---|
| public final CoreSubscriber | |
| public final void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| public final void | |
| public final void | onError(Throwable
the throwable signaled e)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).
|
| public final void | request(long
the strictly positive number of elements to requests to the upstream l)PublisherImplements org. Publisher until demand is signaled via this method.
|
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides default reactor. Implements reactor. |
| actual | back to summary |
|---|---|
| pack-priv final CoreSubscriber<? super T> actual | |
| clock | back to summary |
|---|---|
| pack-priv final io. | |
| commonTags | back to summary |
|---|---|
| pack-priv final io. | |
| done | back to summary |
|---|---|
| pack-priv boolean done | |
| lastNextEventNanos | back to summary |
|---|---|
| pack-priv long lastNextEventNanos | |
| onNextIntervalTimer | back to summary |
|---|---|
| pack-priv final io. | |
| registry | back to summary |
|---|---|
| pack-priv final io. | |
| requestedCounter | back to summary |
|---|---|
| pack-priv final io. | |
| s | back to summary |
|---|---|
| pack-priv Subscription s | |
| sequenceName | back to summary |
|---|---|
| pack-priv final String sequenceName | |
| subscribeToTerminateSample | back to summary |
|---|---|
| pack-priv io. | |
| MetricsSubscriber | back to summary |
|---|---|
| pack-priv MetricsSubscriber(CoreSubscriber<? super T> actual, io. | |
| actual | back to summary |
|---|---|
| public final CoreSubscriber Implements reactor.
| |
| cancel | back to summary |
|---|---|
| public final void cancel() Implements org. Doc from org. Request the Data may still be sent to meet previously signalled demand after calling cancel.
| |
| onComplete | back to summary |
|---|---|
| public final void onComplete() Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onError | back to summary |
|---|---|
| public final void onError(Throwable e) 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
| |
| request | back to summary |
|---|---|
| public final void request(long l) Implements org. Doc from org. No events will be sent by a
It can be called however often and whenever needed—but if the outstanding cumulative demand ever becomes Long.MAX_VALUE or more,
it may be treated by the
Whatever has been requested can be sent by the
A | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. 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 | |