/** * Creates a new {@link Target}. * * @param address the address where the signals will be published * @param authorizationContext the authorization context of the new {@link Target} * @param headerMapping the {@link HeaderMapping} of the new Target * @param topics the FilteredTopics for which this target will receive signals * @return the created {@link Target} */ public static Target newTarget(final String address, final AuthorizationContext authorizationContext, @Nullable final HeaderMapping headerMapping, final Set<FilteredTopic> topics) { return new ImmutableTarget.Builder().address(address) .authorizationContext(authorizationContext) .topics(topics) .headerMapping(headerMapping) .build(); }
/** * Creates a new {@link Target}. * * @param address the address where the signals will be published * @param authorizationContext the authorization context of the new {@link Target} * @param headerMapping the {@link HeaderMapping} of the new Target * @param topics the FilteredTopics for which this target will receive signals * @return the created {@link Target} */ public static Target newTarget(final String address, final AuthorizationContext authorizationContext, @Nullable final HeaderMapping headerMapping, final Set<FilteredTopic> topics) { return new ImmutableTarget.Builder().address(address) .authorizationContext(authorizationContext) .topics(topics) .headerMapping(headerMapping) .build(); }