State Update Routing
A routing schema used to deliver entity state updates.
A routing schema consists of a default route and custom routes per entity state class. When calculating targets to be notified on the updated state, StateUpdateRouting
would see if there is a custom route set for the type of the entity state. If not found, the default route will be applied.
Parameters
<I>
the type of the entity IDs to which the updates are routed
Functions
Link copied to clipboard
Creates a new
StateUpdateRouting
.Link copied to clipboard
public StateUpdateRouting<I> route<S extends EntityState>(Class<S> stateClass, StateUpdateRoute<I, S> via)
Sets a custom route for the passed entity state class.