Class RoutingInfo.DynamicRoutingInfo
java.lang.Object
io.camunda.zeebe.engine.state.routing.RoutingInfo.DynamicRoutingInfo
- All Implemented Interfaces:
RoutingInfo
- Enclosing interface:
RoutingInfo
Naive implementation that always looks up the routing information from the
RoutingState. Later on, we might want to cache this information.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.engine.state.routing.RoutingInfo
RoutingInfo.DynamicRoutingInfo, RoutingInfo.StaticRoutingInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintpartitionForCorrelationKey(org.agrona.DirectBuffer correlationKey) Returns the current partition id for the given correlation key.Returns the current set of partitions.
-
Constructor Details
-
DynamicRoutingInfo
-
-
Method Details
-
partitions
Description copied from interface:RoutingInfoReturns the current set of partitions.- Specified by:
partitionsin interfaceRoutingInfo
-
partitionForCorrelationKey
public int partitionForCorrelationKey(org.agrona.DirectBuffer correlationKey) Description copied from interface:RoutingInfoReturns the current partition id for the given correlation key.- Specified by:
partitionForCorrelationKeyin interfaceRoutingInfo
-