class CircuitBreakerOptions extends AnyRef
Circuit breaker configuration options. All time are given in milliseconds.
- Alphabetic
- By Inheritance
- CircuitBreakerOptions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-  new CircuitBreakerOptions(_asJava: circuitbreaker.CircuitBreakerOptions)
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
-  def asJava: circuitbreaker.CircuitBreakerOptions
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-  def getFailuresRollingWindow: Long
-  def getMaxFailures: Int
-  def getMaxRetries: Int
-  def getMetricsRollingBuckets: Int
-  def getMetricsRollingWindow: Long
-  def getNotificationAddress: String
-  def getNotificationPeriod: Long
-  def getResetTimeout: Long
-  def getTimeout: Long
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-  def isFallbackOnFailure: Boolean
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setFailuresRollingWindow(value: Long): CircuitBreakerOptions
      
      
      Sets the rolling window used for metrics. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setFallbackOnFailure(value: Boolean): CircuitBreakerOptions
      
      
      Sets whether or not the fallback is executed on failure, even when the circuit is closed. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setMaxFailures(value: Int): CircuitBreakerOptions
      
      
      Sets the maximum number of failures before opening the circuit. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setMaxRetries(value: Int): CircuitBreakerOptions
      
      
      Configures the number of times the circuit breaker tries to redo the operation before failing. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setMetricsRollingBuckets(value: Int): CircuitBreakerOptions
      
      
      Sets the configured number of buckets the rolling window is divided into. Sets the configured number of buckets the rolling window is divided into. The following must be true - metrics.rollingStats.timeInMilliseconds % metrics.rollingStats.numBuckets == 0 - otherwise it will throw an exception. In other words, 10000/10 is okay, so is 10000/20 but 10000/7 is not. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setMetricsRollingWindow(value: Long): CircuitBreakerOptions
      
      
      Sets the rolling window used for metrics. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setNotificationAddress(value: String): CircuitBreakerOptions
      
      
      Sets the event bus address on which the circuit breaker publish its state change. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setNotificationPeriod(value: Long): CircuitBreakerOptions
      
      
      Configures the period in milliseconds where the circuit breaker send a notification on the event bus with its current state. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        setResetTimeout(value: Long): CircuitBreakerOptions
      
      
      Sets the time in ms before it attempts to re-close the circuit (by going to the half-open state). Sets the time in ms before it attempts to re-close the circuit (by going to the half-open state). If the circuit is closed when the timeout is reached, nothing happens. -1disables this feature.
- 
      
      
      
        
      
    
      
        
        def
      
      
        setTimeout(value: Long): CircuitBreakerOptions
      
      
      Sets the timeout in milliseconds. Sets the timeout in milliseconds. If an action is not completed before this timeout, the action is considered as a failure. 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )