Examples of ThroughputLogger


Examples of org.apache.camel.processor.ThroughputLogger

        setProperties(endpoint, parameters);

        CamelLogger camelLogger = new CamelLogger(remaining, level, endpoint.getMarker());
        Processor logger;
        if (endpoint.getGroupSize() != null) {
            logger = new ThroughputLogger(camelLogger, endpoint.getGroupSize());
        } else if (endpoint.getGroupInterval() != null) {
            Boolean groupActiveOnly = endpoint.getGroupActiveOnly() != null ? endpoint.getGroupActiveOnly() : Boolean.TRUE;
            Long groupDelay = endpoint.getGroupDelay();
            logger = new ThroughputLogger(camelLogger, this.getCamelContext(), endpoint.getGroupInterval(), groupDelay, groupActiveOnly);
        } else {
            // first, try to use the user-specified formatter (or the one picked up from the Registry and transferred to
            // the property by a previous endpoint initialisation); if null, try to pick it up from the Registry now
            ExchangeFormatter localFormatter = exchangeFormatter;
            if (localFormatter == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.