org.apache.camel.model.loadbalancer
Class CircuitBreakerLoadBalancerDefinition

java.lang.Object
  extended by org.apache.camel.model.IdentifiedType
      extended by org.apache.camel.model.LoadBalancerDefinition
          extended by org.apache.camel.model.loadbalancer.CircuitBreakerLoadBalancerDefinition
All Implemented Interfaces:
AsyncProcessor, Processor, LoadBalancer

public class CircuitBreakerLoadBalancerDefinition
extends LoadBalancerDefinition

Represents an XML <circuitBreaker/> element


Constructor Summary
CircuitBreakerLoadBalancerDefinition()
           
 
Method Summary
protected  LoadBalancer createLoadBalancer(RouteContext routeContext)
          Factory method to create the load balancer instance
 List<String> getExceptions()
           
 Long getHalfOpenAfter()
           
 Integer getThreshold()
           
 void setExceptions(List<String> exceptions)
           
 void setHalfOpenAfter(Long halfOpenAfter)
           
 void setThreshold(Integer threshold)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.model.LoadBalancerDefinition
addProcessor, configureLoadBalancer, getLoadBalancer, getLoadBalancer, getProcessors, process, process, removeProcessor, setProperty
 
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CircuitBreakerLoadBalancerDefinition

public CircuitBreakerLoadBalancerDefinition()
Method Detail

createLoadBalancer

protected LoadBalancer createLoadBalancer(RouteContext routeContext)
Description copied from class: LoadBalancerDefinition
Factory method to create the load balancer instance

Overrides:
createLoadBalancer in class LoadBalancerDefinition

getHalfOpenAfter

public Long getHalfOpenAfter()

setHalfOpenAfter

public void setHalfOpenAfter(Long halfOpenAfter)

getThreshold

public Integer getThreshold()

setThreshold

public void setThreshold(Integer threshold)

getExceptions

public List<String> getExceptions()

setExceptions

public void setExceptions(List<String> exceptions)

toString

public String toString()
Overrides:
toString in class LoadBalancerDefinition


Apache Camel