test_class.declarator: DEFAULT_ROUTE = ImmutableSet.of(0L, 1L)
test_class.modifier: private static final
test_class.original_string: private static final ImmutableSet<Long> DEFAULT_ROUTE = ImmutableSet.of(0L, 1L);
test_class.type: ImmutableSet<Long>
test_class.var_name: DEFAULT_ROUTE
test_class.declarator: CUSTOM_ROUTE = ImmutableSet.of(5L, 6L, 7L)
test_class.modifier: private static final
test_class.original_string: private static final ImmutableSet<Long> CUSTOM_ROUTE = ImmutableSet.of(5L, 6L, 7L);
test_class.type: ImmutableSet<Long>
test_class.var_name: CUSTOM_ROUTE
test_class.declarator: ALT_ROUTE = ImmutableSet.of(100L, 200L, 300L, 400L)
test_class.modifier: private static final
test_class.original_string: private static final ImmutableSet<Long> ALT_ROUTE = ImmutableSet.of(100L, 200L, 300L, 400L);
test_class.type: ImmutableSet<Long>
test_class.var_name: ALT_ROUTE
test_class.declarator: eventRouting
test_class.modifier: private
test_class.original_string: private EventRouting<Long> eventRouting;
test_class.type: EventRouting<Long>
test_class.var_name: eventRouting
test_class.declarator: defaultRoute = (event, context) -> DEFAULT_ROUTE
test_class.modifier: @SuppressWarnings("UnnecessaryLambda")
      private final
test_class.original_string: @SuppressWarnings("UnnecessaryLambda")
      private final EventRoute<Long, EventMessage> defaultRoute = (event, context) -> DEFAULT_ROUTE;
test_class.type: EventRoute<Long, EventMessage>
test_class.var_name: defaultRoute
test_class.declarator: customRoute = (event, context) -> CUSTOM_ROUTE
test_class.modifier: @SuppressWarnings("UnnecessaryLambda")
      private final
test_class.original_string: @SuppressWarnings("UnnecessaryLambda")
      private final EventRoute<Long, UserEvent> customRoute = (event, context) -> CUSTOM_ROUTE;
test_class.type: EventRoute<Long, UserEvent>
test_class.var_name: customRoute
test_class.declarator: alternativeRoute = (event, context) -> ALT_ROUTE
test_class.modifier: @SuppressWarnings("UnnecessaryLambda")
      private final
test_class.original_string: @SuppressWarnings("UnnecessaryLambda")
      private final EventRoute<Long, UserEvent> alternativeRoute = (event, context) -> ALT_ROUTE;
test_class.type: EventRoute<Long, UserEvent>
test_class.var_name: alternativeRoute
test_class.file: server/src/test/java/io/spine/server/route/EventRoutingTest.java
test_class.identifier: EventRoutingTest
test_case.body: @Test
      @DisplayName("not allow overwriting set route")
      void notOverwriteSetRoute() {
          eventRouting.route(UserRegistered.class, customRoute);
          assertThrows(IllegalStateException.class,
                       () -> eventRouting.route(UserRegistered.class, customRoute));
      }
test_case.class_method_signature: EventRoutingTest.notOverwriteSetRoute()
test_case.full_signature: @Test @DisplayName("not allow overwriting set route") void notOverwriteSetRoute()
test_case.identifier: notOverwriteSetRoute
test_case.invocations: route assertThrows route
test_case.modifiers: @Test @DisplayName("not allow overwriting set route")
test_case.parameters: ()
test_case.return: void
test_case.signature: void notOverwriteSetRoute()
focal_class.declarator: serialVersionUID = 0L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 0L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.file: server/src/main/java/io/spine/server/route/EventRouting.java
focal_class.identifier: EventRouting
focal_class.interfaces: implements EventRoute<I, EventMessage>
focal_class.class_method_signature: EventRouting.EventRouting(EventRoute<I, EventMessage> defaultRoute)
focal_class.full_signature: private  EventRouting(EventRoute<I, EventMessage> defaultRoute)
focal_class.identifier: EventRouting
focal_class.modifiers: private
focal_class.parameters: (EventRoute<I, EventMessage> defaultRoute)
focal_class.signature:  EventRouting(EventRoute<I, EventMessage> defaultRoute)
focal_class.class_method_signature: EventRouting.withDefault(EventRoute<I, EventMessage> defaultRoute)
focal_class.full_signature: @CanIgnoreReturnValue public static EventRouting<I> withDefault(EventRoute<I, EventMessage> defaultRoute)
focal_class.identifier: withDefault
focal_class.modifiers: @CanIgnoreReturnValue public static
focal_class.parameters: (EventRoute<I, EventMessage> defaultRoute)
focal_class.return: EventRouting<I>
focal_class.signature: EventRouting<I> withDefault(EventRoute<I, EventMessage> defaultRoute)
focal_class.class_method_signature: EventRouting.withDefaultByProducerId()
focal_class.full_signature: public static EventRouting<I> withDefaultByProducerId()
focal_class.identifier: withDefaultByProducerId
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: EventRouting<I>
focal_class.signature: EventRouting<I> withDefaultByProducerId()
focal_class.class_method_signature: EventRouting.defaultRoute()
focal_class.full_signature: @Override public final EventRoute<I, EventMessage> defaultRoute()
focal_class.identifier: defaultRoute
focal_class.modifiers: @Override public final
focal_class.parameters: ()
focal_class.return: EventRoute<I, EventMessage>
focal_class.signature: EventRoute<I, EventMessage> defaultRoute()
focal_class.class_method_signature: EventRouting.replaceDefault(EventRoute<I, EventMessage> newDefault)
focal_class.full_signature: @CanIgnoreReturnValue public EventRouting<I> replaceDefault(EventRoute<I, EventMessage> newDefault)
focal_class.identifier: replaceDefault
focal_class.modifiers: @CanIgnoreReturnValue public
focal_class.parameters: (EventRoute<I, EventMessage> newDefault)
focal_class.return: EventRouting<I>
focal_class.signature: EventRouting<I> replaceDefault(EventRoute<I, EventMessage> newDefault)
focal_class.class_method_signature: EventRouting.route(Class<E> eventType, EventRoute<I, ? super E> via)
focal_class.full_signature: @CanIgnoreReturnValue public EventRouting<I> route(Class<E> eventType, EventRoute<I, ? super E> via)
focal_class.identifier: route
focal_class.modifiers: @CanIgnoreReturnValue public
focal_class.parameters: (Class<E> eventType, EventRoute<I, ? super E> via)
focal_class.return: EventRouting<I>
focal_class.signature: EventRouting<I> route(Class<E> eventType, EventRoute<I, ? super E> via)
focal_class.class_method_signature: EventRouting.routeStateUpdates(StateUpdateRouting<I> routing)
focal_class.full_signature: @CanIgnoreReturnValue public EventRouting<I> routeStateUpdates(StateUpdateRouting<I> routing)
focal_class.identifier: routeStateUpdates
focal_class.modifiers: @CanIgnoreReturnValue public
focal_class.parameters: (StateUpdateRouting<I> routing)
focal_class.return: EventRouting<I>
focal_class.signature: EventRouting<I> routeStateUpdates(StateUpdateRouting<I> routing)
focal_class.class_method_signature: EventRouting.get(Class<M> eventClass)
focal_class.full_signature: public Optional<EventRoute<I, M>> get(Class<M> eventClass)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (Class<M> eventClass)
focal_class.return: Optional<EventRoute<I, M>>
focal_class.signature: Optional<EventRoute<I, M>> get(Class<M> eventClass)
focal_class.superclass: extends MessageRouting<EventMessage, EventContext, Set<I>>
focal_method.body: @CanIgnoreReturnValue
      public <E extends EventMessage>
      EventRouting<I> route(Class<E> eventType, EventRoute<I, ? super E> via)
              throws IllegalStateException {
          @SuppressWarnings("unchecked") // The cast is required to adapt the type to internal API.
          Route<EventMessage, EventContext, Set<I>> casted =
                  (Route<EventMessage, EventContext, Set<I>>) via;
          addRoute(eventType, casted);
          return this;
      }
focal_method.class_method_signature: EventRouting.route(Class<E> eventType, EventRoute<I, ? super E> via)
focal_method.full_signature: @CanIgnoreReturnValue public EventRouting<I> route(Class<E> eventType, EventRoute<I, ? super E> via)
focal_method.identifier: route
focal_method.invocations: addRoute
focal_method.modifiers: @CanIgnoreReturnValue public
focal_method.parameters: (Class<E> eventType, EventRoute<I, ? super E> via)
focal_method.return: EventRouting<I>
focal_method.signature: EventRouting<I> route(Class<E> eventType, EventRoute<I, ? super E> via)