Examples of LoadBalancerDefinition


Examples of org.apache.camel.model.LoadBalancerDefinition

    /**
     * @param loadBalancerType the loadBalancerType to set
     */
    public void setLoadBalancerType(LoadBalancerDefinition loadBalancerType) {
        LoadBalancerDefinition oldValue = this.loadBalancerType;
        this.loadBalancerType = loadBalancerType;
        if (!isSame(oldValue, loadBalancerType)) {
            firePropertyChange(PROPERTY_LOADBALANCERTYPE, oldValue, loadBalancerType);
        }
    }
View Full Code Here

Examples of org.apache.camel.model.loadbalancer.LoadBalancerDefinition

     *
     * @param loadBalancer  the load balancer
     * @return the builder
     */
    public LoadBalanceDefinition setLoadBalancer(LoadBalancer loadBalancer) {
        loadBalancerType = new LoadBalancerDefinition(loadBalancer);
        return this;
    }
View Full Code Here

Examples of org.apache.camel.model.loadbalancer.LoadBalancerDefinition

     * Uses fail over load balancer
     *
     * @return the builder
     */
    public LoadBalanceDefinition failOver() {
        loadBalancerType = new LoadBalancerDefinition(new FailOverLoadBalancer());
        return this;
    }
View Full Code Here

Examples of org.apache.camel.model.loadbalancer.LoadBalancerDefinition

     *
     * @param throwable exception Class which we want to catch
     * @return the builder
     */
    public LoadBalanceDefinition failOver(Class throwable) {
        loadBalancerType = new LoadBalancerDefinition(new FailOverLoadBalancer(throwable));
        return this;
    }
View Full Code Here

Examples of org.apache.camel.model.loadbalancer.LoadBalancerDefinition

     * Uses round robin load balancer
     *
     * @return the builder
     */
    public LoadBalanceDefinition roundRobin() {
        loadBalancerType = new LoadBalancerDefinition(new RoundRobinLoadBalancer());
        return this;
    }
View Full Code Here

Examples of org.apache.camel.model.loadbalancer.LoadBalancerDefinition

    /**
     * Uses random load balancer
     * @return the builder
     */
    public LoadBalanceDefinition random() {
        loadBalancerType = new LoadBalancerDefinition(new RandomLoadBalancer());
        return this;
    }
View Full Code Here

Examples of org.apache.camel.model.loadbalancer.LoadBalancerDefinition

     *
     * @param correlationExpression  the expression for correlation
     * @return  the builder
     */
    public LoadBalanceDefinition sticky(Expression correlationExpression) {
        loadBalancerType = new LoadBalancerDefinition(new StickyLoadBalancer(correlationExpression));
        return this;
    }
View Full Code Here

Examples of org.apache.camel.model.loadbalancer.LoadBalancerDefinition

     * Uses topic load balancer
     *
     * @return the builder
     */
    public LoadBalanceDefinition topic() {
        loadBalancerType = new LoadBalancerDefinition(new TopicLoadBalancer());
        return this;
    }
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.