InT
- the type of messages being routed.public interface Router<InT>
Router
routes messages from ingresses to individual StatefulFunction
s.
Implementations should be stateless, as any state in routers are not persisted by the system.
Modifier and Type | Interface and Description |
---|---|
static interface |
Router.Downstream<T>
Interface for invoking downstream functions.
|
Modifier and Type | Method and Description |
---|---|
void |
route(InT message,
Router.Downstream<InT> downstream)
Routes a given message to downstream
StatefulFunction s. |
void route(InT message, Router.Downstream<InT> downstream)
StatefulFunction
s. A single message may result in
multiple functions being invoked.message
- the message to route.downstream
- used to invoke downstream functions.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.