withDefault

public static EventRouting<I> withDefault<I>(EventRoute<I, EventMessage> defaultRoute)

Creates a new event routing with the passed default route.

Return

new routing instance

Parameters

defaultRoute

the default route

<I>

the type of entity identifiers returned by new routing