public AtomicValue<Long> decrement() {
            return trySet(value.postValue() - 1);
        }
A lock which works inside a single vm
zkfacade/src/main/java/com/yahoo/vespa/curator/mock/MockCuratorFramework.java