Interface RoutingModel
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DirectRouting,DynamicRouting
Sealed hierarchy representing how a virtual cluster reaches its upstream Kafka cluster(s).
DirectRouting— a single, statically-configured upstream clusterDynamicRouting— one or more upstream clusters reached via a named router plugin
Implementations own the UpstreamClusterModel instances they hold and must release
them via close() when the owning virtual cluster is stopped.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()upstreamClusterFor(String routeName) Returns theUpstreamClusterModelfor the given route name
-
Method Details
-
upstreamClusterFor
Returns theUpstreamClusterModelfor the given route name- Throws:
NoUpstreamClusterForRouteException- if no upstream exists for this routeName
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-