Package org.apache.camel.model

Examples of org.apache.camel.model.RedeliveryPolicyDefinition


        }
        buffer.append(")");

        // render the redelivery policy
        if (onException.getRedeliveryPolicy() != null) {
            RedeliveryPolicyDefinition redelivery = onException.getRedeliveryPolicy();
            if (redelivery.getMaximumRedeliveries() != null) {
                int maxRedeliveries = redelivery.getMaximumRedeliveries();
                if (maxRedeliveries != 0) {
                    buffer.append(".maximumRedeliveries(").append(maxRedeliveries).append(")");
                }
            }
            if (redelivery.getRedeliveryDelay() != null) {
                long redeliverDelay = redelivery.getRedeliveryDelay();
                if (redeliverDelay != 1000) {
                    buffer.append(".redeliverDelay(").append(redeliverDelay).append(")");
                }
            }
            if (redelivery.getLogStackTrace() != null) {
                if (redelivery.getLogStackTrace()) {
                    buffer.append(".logStackTrace(true)");
                }
            }
        }
View Full Code Here


        }
        buffer.append(")");

        // render the redelivery policy
        if (onException.getRedeliveryPolicy() != null) {
            RedeliveryPolicyDefinition redelivery = onException.getRedeliveryPolicy();
            if (redelivery.getMaximumRedeliveries() != null) {
                int maxRedeliveries = redelivery.getMaximumRedeliveries();
                if (maxRedeliveries != 0) {
                    buffer.append(".maximumRedeliveries(").append(maxRedeliveries).append(")");
                }
            }
            if (redelivery.getRedeliveryDelay() != null) {
                long redeliverDelay = redelivery.getRedeliveryDelay();
                if (redeliverDelay != 1000) {
                    buffer.append(".redeliverDelay(").append(redeliverDelay).append(")");
                }
            }
            if (redelivery.getLogStackTrace() != null) {
                if (redelivery.getLogStackTrace()) {
                    buffer.append(".logStackTrace(true)");
                }
            }
        }
View Full Code Here

    /**
     * @param redeliveryPolicy the redeliveryPolicy to set
     */
    public void setRedeliveryPolicy(RedeliveryPolicyDefinition redeliveryPolicy) {
        RedeliveryPolicyDefinition oldValue = this.redeliveryPolicy;
        this.redeliveryPolicy = redeliveryPolicy;
        if (!isSame(oldValue, redeliveryPolicy)) {
            firePropertyChange(PROPERTY_REDELIVERYPOLICY, oldValue, redeliveryPolicy);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.model.RedeliveryPolicyDefinition

Copyright © 2018 www.massapicom. 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.