Class RoutingTarget.RoutingTargetBuilder

java.lang.Object
org.springframework.modulith.events.RoutingTarget.RoutingTargetBuilder
Enclosing class:
RoutingTarget

public static class RoutingTarget.RoutingTargetBuilder extends Object
An intermediary to ultimately create RoutingTarget instances.
Since:
1.1
Author:
Oliver Drotbohm
  • Method Details

    • andKey

      public RoutingTarget andKey(String key)
      Returns a new RoutingTarget with the already configured target and the given key.
      Parameters:
      key - must not be null.
      Returns:
      will never be null.
    • withoutKey

      public RoutingTarget withoutKey()
      Returns a new RoutingTarget without a key.
      Returns:
      will never be null.