Search in sources :

Example 6 with AtomicReferenceContainer

use of com.hazelcast.concurrent.atomicreference.AtomicReferenceContainer in project hazelcast by hazelcast.

the class SetBackupOperation method run.

@Override
public void run() throws Exception {
    AtomicReferenceContainer atomicReferenceContainer = getReferenceContainer();
    atomicReferenceContainer.set(newValue);
}
Also used : AtomicReferenceContainer(com.hazelcast.concurrent.atomicreference.AtomicReferenceContainer)

Example 7 with AtomicReferenceContainer

use of com.hazelcast.concurrent.atomicreference.AtomicReferenceContainer in project hazelcast by hazelcast.

the class GetAndSetOperation method run.

@Override
public void run() throws Exception {
    AtomicReferenceContainer atomicReferenceContainer = getReferenceContainer();
    returnValue = atomicReferenceContainer.getAndSet(newValue);
}
Also used : AtomicReferenceContainer(com.hazelcast.concurrent.atomicreference.AtomicReferenceContainer)

Example 8 with AtomicReferenceContainer

use of com.hazelcast.concurrent.atomicreference.AtomicReferenceContainer in project hazelcast by hazelcast.

the class IsNullOperation method run.

@Override
public void run() throws Exception {
    AtomicReferenceContainer atomicReferenceContainer = getReferenceContainer();
    returnValue = atomicReferenceContainer.isNull();
}
Also used : AtomicReferenceContainer(com.hazelcast.concurrent.atomicreference.AtomicReferenceContainer)

Example 9 with AtomicReferenceContainer

use of com.hazelcast.concurrent.atomicreference.AtomicReferenceContainer in project hazelcast by hazelcast.

the class SetAndGetOperation method run.

@Override
public void run() throws Exception {
    AtomicReferenceContainer atomicReferenceContainer = getReferenceContainer();
    atomicReferenceContainer.getAndSet(newValue);
    returnValue = newValue;
}
Also used : AtomicReferenceContainer(com.hazelcast.concurrent.atomicreference.AtomicReferenceContainer)

Example 10 with AtomicReferenceContainer

use of com.hazelcast.concurrent.atomicreference.AtomicReferenceContainer in project hazelcast by hazelcast.

the class SetOperation method run.

@Override
public void run() throws Exception {
    AtomicReferenceContainer atomicReferenceContainer = getReferenceContainer();
    atomicReferenceContainer.set(newValue);
}
Also used : AtomicReferenceContainer(com.hazelcast.concurrent.atomicreference.AtomicReferenceContainer)

Aggregations

AtomicReferenceContainer (com.hazelcast.concurrent.atomicreference.AtomicReferenceContainer)12 IFunction (com.hazelcast.core.IFunction)4 Data (com.hazelcast.nio.serialization.Data)4 NodeEngine (com.hazelcast.spi.NodeEngine)4 AtomicReferenceService (com.hazelcast.concurrent.atomicreference.AtomicReferenceService)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1