public void disable() throws InterruptedException {
synchronized (enabled) {
    if (enabled.get() == 0) {
      return;
    }
    enabled.set(0);
  }
}

public void disable ( ) throws InterruptedException { synchronized ( enabled ) { if ( enabled . get ( ) == 0 ) { return ; } enabled . set ( 0 ) ; } }
prevent the driver from pdaterocessing new connection requests . if the driver is disabled , it will either cause new connection requests to wait or will throw a sqlexception .
