parent
ede98ffdb9
commit
1bd04d5bd4
|
@ -39,21 +39,22 @@ package org.apache.commons.lang3.concurrent;
|
|||
* @since 3.5
|
||||
*/
|
||||
public interface CircuitBreaker<T> {
|
||||
|
||||
/**
|
||||
* Returns the current open state of this circuit breaker. A return value of
|
||||
* Tests the current open state of this circuit breaker. A return value of
|
||||
* <strong>true</strong> means that the circuit breaker is currently open indicating a
|
||||
* problem in the monitored sub system.
|
||||
*
|
||||
* @return the current open state of this circuit breaker
|
||||
* @return the current open state of this circuit breaker.
|
||||
*/
|
||||
boolean isOpen();
|
||||
|
||||
/**
|
||||
* Returns the current closed state of this circuit breaker. A return value of
|
||||
* Tests the current closed state of this circuit breaker. A return value of
|
||||
* <strong>true</strong> means that the circuit breaker is currently closed. This
|
||||
* means that everything is okay with the monitored sub system.
|
||||
*
|
||||
* @return the current closed state of this circuit breaker
|
||||
* @return the current closed state of this circuit breaker.
|
||||
*/
|
||||
boolean isClosed();
|
||||
|
||||
|
@ -63,7 +64,7 @@ public interface CircuitBreaker<T> {
|
|||
* of <strong>true</strong> typically means that the current operation can continue.
|
||||
*
|
||||
* @return <strong>true</strong> if the circuit breaker is now closed;
|
||||
* <strong>false</strong> otherwise
|
||||
* <strong>false</strong> otherwise.
|
||||
*/
|
||||
boolean checkState();
|
||||
|
||||
|
|
Loading…
Reference in New Issue