public void setStatus ( final ConnectionStatus update ) { status . getAndSet ( update ) ; if ( ConnectionStatus . TERMINATED == status . get ( ) ) { resourceSynchronizer . doNotify ( ) ; } }
Change connection status using get and set .