public void setRunningStatusIfNecessary() {
        if (ConnectionStatus.TRANSACTION != status.get() && ConnectionStatus.RUNNING != status.get()) {
            status.getAndSet(ConnectionStatus.RUNNING);
        }
    }
public void setRunningStatusIfNecessary ( ) { if ( ConnectionStatus . TRANSACTION != status . get ( ) && ConnectionStatus . RUNNING != status . get ( ) ) { status . getAndSet ( ConnectionStatus . RUNNING ) ; } }
Change connection status to running if necessary.