protected void changeState ( final State newState ) { if ( state . compareAndSet ( newState . oppositeState ( ) , newState ) ) { changeSupport . firePropertyChange ( PROPERTY_NAME , ! isOpen ( newState ) , isOpen ( newState ) ) ; } }
Changes the internal state of this circuit breaker . If there is actually a change of the state value all registered change listeners are notified .