Modifier and Type | Method and Description |
---|---|
void |
forward(Address to,
T message)
Forwards the message as an input to a downstream function, addressed by a specified
Address . |
default void |
forward(FunctionType functionType,
java.lang.String id,
T message)
Forwards the message as an input to a downstream function, addressed by a specified
FunctionType and the functions unique id within its type. |
Metrics |
metrics()
Returns the metrics that are scoped to this ingress.
|
void forward(Address to, T message)
Address
.to
- the target function's address.message
- the message being forwarded.default void forward(FunctionType functionType, java.lang.String id, T message)
FunctionType
and the functions unique id within its type.functionType
- the target function's type.id
- the target function's unique id.message
- the message being forwarded.Metrics metrics()
Every metric defined here will be associated to the ingress, that this router is attached
to. For example, if this router is attached to an ingress with an IngressIdentifier("foo", "bar")
, then every metric name M
will appear as
"routers.foo.bar.M".
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.