public boolean setSecondaryHostFail ( ) { if ( secondaryHostFail . compareAndSet ( false , true ) ) { secondaryHostFailNanos = System . nanoTime ( ) ; currentConnectionAttempts . set ( 0 ) ; return true ; } return false ; }
Set slave connection lost variables .