Class ChannelRouter
java.lang.Object
com.iantapply.relay.core.ChannelRouter
Maps logical destinations and node roles to namespaced transport channels.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchannel(com.iantapply.relay.api.Destination destination) Resolves the publication channel for a destination.subscriptions(RelayConfig config) Returns the channels a node must consume for broadcasts, its platform, and its node ID.
-
Constructor Details
-
ChannelRouter
Creates a router for one Redis namespace.- Parameters:
namespace- namespace shared by communicating Relay nodes
-
-
Method Details
-
channel
Resolves the publication channel for a destination.- Parameters:
destination- logical destination- Returns:
- transport channel name
-
subscriptions
Returns the channels a node must consume for broadcasts, its platform, and its node ID.- Parameters:
config- local node configuration- Returns:
- channel names to subscribe to
-