/** * When configured, the specified cache limit is passed down to the * underlying SubscriptionRegistry, overriding any default there. * <p>With a standard {@link DefaultSubscriptionRegistry}, the default * cache limit is 1024. * @since 4.3.2 * @see #setSubscriptionRegistry * @see DefaultSubscriptionRegistry#setCacheLimit * @see DefaultSubscriptionRegistry#DEFAULT_CACHE_LIMIT */ public void setCacheLimit(@Nullable Integer cacheLimit) { this.cacheLimit = cacheLimit; initCacheLimitToUse(); }
/** * 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(); }
/** * When configured, the specified cache limit is passed down to the * underlying SubscriptionRegistry, overriding any default there. * <p>With a standard {@link DefaultSubscriptionRegistry}, the default * cache limit is 1024. * @since 4.3.2 * @see #setSubscriptionRegistry * @see DefaultSubscriptionRegistry#setCacheLimit * @see DefaultSubscriptionRegistry#DEFAULT_CACHE_LIMIT */ public void setCacheLimit(@Nullable Integer cacheLimit) { this.cacheLimit = cacheLimit; initCacheLimitToUse(); }
/** * 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(); }
/** * When configured, the specified cache limit is passed down to the * underlying SubscriptionRegistry, overriding any default there. * <p>With a standard {@link DefaultSubscriptionRegistry}, the default * cache limit is 1024. * @since 4.3.2 * @see #setSubscriptionRegistry * @see DefaultSubscriptionRegistry#setCacheLimit * @see DefaultSubscriptionRegistry#DEFAULT_CACHE_LIMIT */ public void setCacheLimit(@Nullable Integer cacheLimit) { this.cacheLimit = cacheLimit; initCacheLimitToUse(); }
/** * When configured, the specified cache limit is passed down to the * underlying SubscriptionRegistry, overriding any default there. * <p>With a standard {@link DefaultSubscriptionRegistry}, the default * cache limit is 1024. * @since 4.3.2 * @see #setSubscriptionRegistry * @see DefaultSubscriptionRegistry#setCacheLimit * @see DefaultSubscriptionRegistry#DEFAULT_CACHE_LIMIT */ public void setCacheLimit(@Nullable Integer cacheLimit) { this.cacheLimit = cacheLimit; initCacheLimitToUse(); }
/** * 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(); }