Search in sources :

Example 1 with AtomicLongImpl

use of com.tvd12.calabash.local.impl.AtomicLongImpl in project calabash by youngmonkeys.

the class SimpleAtomicLongManager method newAtomicLong.

protected IAtomicLong newAtomicLong(String name) {
    synchronized (atomicLongs) {
        IAtomicLong atomicLong = atomicLongs.get(name);
        if (atomicLong == null) {
            atomicLong = new AtomicLongImpl(name, map);
            atomicLongs.put(name, atomicLong);
        }
        return atomicLong;
    }
}
Also used : AtomicLongImpl(com.tvd12.calabash.server.core.impl.AtomicLongImpl) IAtomicLong(com.tvd12.calabash.core.IAtomicLong)

Example 2 with AtomicLongImpl

use of com.tvd12.calabash.local.impl.AtomicLongImpl in project calabash by youngmonkeys.

the class SimpleAtomicLongManager method newAtomicLong.

protected IAtomicLong newAtomicLong(String name) {
    synchronized (atomicLongs) {
        IAtomicLong atomicLong = atomicLongs.get(name);
        if (atomicLong == null) {
            atomicLong = new AtomicLongImpl(name, map);
            atomicLongs.put(name, atomicLong);
        }
        return atomicLong;
    }
}
Also used : AtomicLongImpl(com.tvd12.calabash.local.impl.AtomicLongImpl) IAtomicLong(com.tvd12.calabash.core.IAtomicLong)

Aggregations

IAtomicLong (com.tvd12.calabash.core.IAtomicLong)2 AtomicLongImpl (com.tvd12.calabash.local.impl.AtomicLongImpl)1 AtomicLongImpl (com.tvd12.calabash.server.core.impl.AtomicLongImpl)1