Example usage for org.springframework.integration.support.management MessageSourceMetrics getOverrides

List of usage examples for org.springframework.integration.support.management MessageSourceMetrics getOverrides

Introduction

In this page you can find the example usage for org.springframework.integration.support.management MessageSourceMetrics getOverrides.

Prototype

ManagementOverrides getOverrides();

Source Link

Document

Return the overrides.

Usage

From source file:org.springframework.integration.config.IntegrationManagementConfigurer.java

private void configureSourceMetrics(String name, MessageSourceMetrics bean) {
    Boolean enabled = PatternMatchUtils.smartMatch(name, this.enabledCountsPatterns);
    if (enabled != null) {
        bean.setCountsEnabled(enabled);//from ww w .j av  a2s .  co  m
    } else {
        if (!bean.getOverrides().countsConfigured) {
            bean.setCountsEnabled(this.defaultCountsEnabled);
        }
    }
    this.sourcesByName.put(bean.getManagedName() != null ? bean.getManagedName() : name, bean);
}