/** * Configure the name of a header that a subscription message can have for * the purpose of filtering messages matched to the subscription. The header * value is expected to be a Spring EL boolean expression to be applied to * the headers of messages matched to the subscription. * <p>For example: * <pre> * headers.foo == 'bar' * </pre> * <p>By default this is set to "selector". You can set it to a different * name, or to {@code null} to turn off support for a selector header. * @param selectorHeaderName the name to use for a selector header * @since 4.3.17 * @see #setSubscriptionRegistry * @see DefaultSubscriptionRegistry#setSelectorHeaderName(String) */ public void setSelectorHeaderName(@Nullable String selectorHeaderName) { this.selectorHeaderName = selectorHeaderName; initSelectorHeaderNameToUse(); }
/** * Configure a custom SubscriptionRegistry to use for storing subscriptions. * <p><strong>Note</strong> that when a custom PathMatcher is configured via * {@link #setPathMatcher}, if the custom registry is not an instance of * {@link DefaultSubscriptionRegistry}, the provided PathMatcher is not used * and must be configured directly on the custom registry. */ public void setSubscriptionRegistry(SubscriptionRegistry subscriptionRegistry) { Assert.notNull(subscriptionRegistry, "SubscriptionRegistry must not be null"); this.subscriptionRegistry = subscriptionRegistry; initPathMatcherToUse(); initCacheLimitToUse(); initSelectorHeaderNameToUse(); }
/** * Configure the name of a header that a subscription message can have for * the purpose of filtering messages matched to the subscription. The header * value is expected to be a Spring EL boolean expression to be applied to * the headers of messages matched to the subscription. * <p>For example: * <pre> * headers.foo == 'bar' * </pre> * <p>By default this is set to "selector". You can set it to a different * name, or to {@code null} to turn off support for a selector header. * @param selectorHeaderName the name to use for a selector header * @since 4.3.17 * @see #setSubscriptionRegistry * @see DefaultSubscriptionRegistry#setSelectorHeaderName(String) */ public void setSelectorHeaderName(@Nullable String selectorHeaderName) { this.selectorHeaderName = selectorHeaderName; initSelectorHeaderNameToUse(); }
/** * Configure a custom SubscriptionRegistry to use for storing subscriptions. * <p><strong>Note</strong> that when a custom PathMatcher is configured via * {@link #setPathMatcher}, if the custom registry is not an instance of * {@link DefaultSubscriptionRegistry}, the provided PathMatcher is not used * and must be configured directly on the custom registry. */ public void setSubscriptionRegistry(SubscriptionRegistry subscriptionRegistry) { Assert.notNull(subscriptionRegistry, "SubscriptionRegistry must not be null"); this.subscriptionRegistry = subscriptionRegistry; initPathMatcherToUse(); initCacheLimitToUse(); initSelectorHeaderNameToUse(); }
/** * Configure the name of a header that a subscription message can have for * the purpose of filtering messages matched to the subscription. The header * value is expected to be a Spring EL boolean expression to be applied to * the headers of messages matched to the subscription. * <p>For example: * <pre> * headers.foo == 'bar' * </pre> * <p>By default this is set to "selector". You can set it to a different * name, or to {@code null} to turn off support for a selector header. * @param selectorHeaderName the name to use for a selector header * @since 4.3.17 * @see #setSubscriptionRegistry * @see DefaultSubscriptionRegistry#setSelectorHeaderName(String) */ public void setSelectorHeaderName(@Nullable String selectorHeaderName) { this.selectorHeaderName = selectorHeaderName; initSelectorHeaderNameToUse(); }
/** * Configure the name of a header that a subscription message can have for * the purpose of filtering messages matched to the subscription. The header * value is expected to be a Spring EL boolean expression to be applied to * the headers of messages matched to the subscription. * <p>For example: * <pre> * headers.foo == 'bar' * </pre> * <p>By default this is set to "selector". You can set it to a different * name, or to {@code null} to turn off support for a selector header. * @param selectorHeaderName the name to use for a selector header * @since 4.3.17 * @see #setSubscriptionRegistry * @see DefaultSubscriptionRegistry#setSelectorHeaderName(String) */ public void setSelectorHeaderName(@Nullable String selectorHeaderName) { this.selectorHeaderName = selectorHeaderName; initSelectorHeaderNameToUse(); }
/** * Configure a custom SubscriptionRegistry to use for storing subscriptions. * <p><strong>Note</strong> that when a custom PathMatcher is configured via * {@link #setPathMatcher}, if the custom registry is not an instance of * {@link DefaultSubscriptionRegistry}, the provided PathMatcher is not used * and must be configured directly on the custom registry. */ public void setSubscriptionRegistry(SubscriptionRegistry subscriptionRegistry) { Assert.notNull(subscriptionRegistry, "SubscriptionRegistry must not be null"); this.subscriptionRegistry = subscriptionRegistry; initPathMatcherToUse(); initCacheLimitToUse(); initSelectorHeaderNameToUse(); }
/** * Configure a custom SubscriptionRegistry to use for storing subscriptions. * <p><strong>Note</strong> that when a custom PathMatcher is configured via * {@link #setPathMatcher}, if the custom registry is not an instance of * {@link DefaultSubscriptionRegistry}, the provided PathMatcher is not used * and must be configured directly on the custom registry. */ public void setSubscriptionRegistry(SubscriptionRegistry subscriptionRegistry) { Assert.notNull(subscriptionRegistry, "SubscriptionRegistry must not be null"); this.subscriptionRegistry = subscriptionRegistry; initPathMatcherToUse(); initCacheLimitToUse(); initSelectorHeaderNameToUse(); }