public static enum Scannable.Attr extends Enum<Scannable.Attr>
Enum Constant and Description |
---|
ACTUAL
The direct dependent component downstream reference if any.
|
BUFFERED
A
Integer attribute implemented by components with a backlog
capacity. |
CANCELLED
A
Boolean attribute indicating whether or not a downstream component
has interrupted consuming this scanned component, e.g., a cancelled
subscription. |
CAPACITY
|
DELAY_ERROR
Delay_Error exposes a
Boolean whether the scanned component
actively supports error delaying if it manages a backlog instead of fast
error-passing which might drop pending backlog. |
ERROR
a
Throwable attribute which indicate an error state if the scanned
component keeps track of it. |
PARENT
Parent key exposes the direct upstream relationship of the scanned component.
|
PREFETCH
Prefetch is an
Integer attribute defining the rate of processing in a
component
which has capacity to request and hold a backlog of data. |
REQUESTED_FROM_DOWNSTREAM
A
Long attribute exposing the current pending demand of a downstream
component. |
TERMINATED
A
Boolean attribute indicating whether or not an upstream component
terminated this scanned component. |
Modifier and Type | Method and Description |
---|---|
static Scannable.Attr |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Scannable.Attr[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scannable.Attr PARENT
Scannable.parents()
can be used to navigate the parent chain.
public static final Scannable.Attr DELAY_ERROR
Boolean
whether the scanned component
actively supports error delaying if it manages a backlog instead of fast
error-passing which might drop pending backlog.
Note: This attribute usually resolves to a constant value
public static final Scannable.Attr PREFETCH
Integer
attribute defining the rate of processing in a
component
which has capacity to request and hold a backlog of data. It
usually maps to a component capacity when no arbitrary CAPACITY
is
set. Integer.MAX_VALUE
signal unlimited capacity and therefore
unbounded demand.
Note: This attribute usually resolves to a constant value
public static final Scannable.Attr CAPACITY
Integer
capacity when no PREFETCH
is defined or
when an arbitrary maximum limit is applied to the backlog capacity of the
scanned component. Integer.MAX_VALUE
signal unlimited capacity.
Note: This attribute usually resolves to a constant value
public static final Scannable.Attr ACTUAL
A reference chain downstream can be navigated via Scannable.actuals()
.
public static final Scannable.Attr ERROR
Throwable
attribute which indicate an error state if the scanned
component keeps track of it.public static final Scannable.Attr BUFFERED
Integer
attribute implemented by components with a backlog
capacity. It will expose current queue size or similar related to
user-provided held data.public static final Scannable.Attr REQUESTED_FROM_DOWNSTREAM
Long
attribute exposing the current pending demand of a downstream
component. Note that Long.MAX_VALUE
indicates an unbounded
(push-style) demand as specified in
Subscription.request(long)
.public static final Scannable.Attr CANCELLED
Boolean
attribute indicating whether or not a downstream component
has interrupted consuming this scanned component, e.g., a cancelled
subscription. Note that it differs from TERMINATED
which is
intended for "normal" shutdown cycles.public static final Scannable.Attr TERMINATED
public static Scannable.Attr[] values()
for (Scannable.Attr c : Scannable.Attr.values()) System.out.println(c);
public static Scannable.Attr valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null