Code example for AtomicBoolean

Methods: getAndSet

0
        return hasFailed;
    } 
 
 
    private boolean checkoutRequested() { 
        return !useEventing || checkoutRequested.getAndSet(false);
    } 
 
    public void sync() { 
        try { 
            if (autoCheckout && checkoutRequested()) {
                checkout(); 
            } 
 
            if (autoCommit) {
                commit(); 
            } 
        } catch (DeploymentSynchronizerException e) {
            log.error("Synchronization error encountered in the repository " +
                      "at: " + filePath, e);
        } catch (Exception t) {