public final class AutoRoutableProtobufRouter extends java.lang.Object implements Router<com.google.protobuf.Message>
Router
that recognizes messages of type AutoRoutable
.
For each incoming AutoRoutable
, this router forwards the wrapped payload to the
configured target addresses as a TypedValue
message.
Router.Downstream<T>
Constructor and Description |
---|
AutoRoutableProtobufRouter() |
Modifier and Type | Method and Description |
---|---|
void |
route(com.google.protobuf.Message message,
Router.Downstream<com.google.protobuf.Message> downstream)
Note: while the input and type of this method is both
Message , we actually do a
conversion here. |
public void route(com.google.protobuf.Message message, Router.Downstream<com.google.protobuf.Message> downstream)
Message
, we actually do a
conversion here. The input Message
is an AutoRoutable
, which gets converted to
a TypedValue
as the output after slicing the target address and actual payload.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.