use of com.hazelcast.spi.impl.NodeEngine in project hazelcast by hazelcast.
the class MultiMapProxyImpl method put.
@Override
public boolean put(@Nonnull K key, @Nonnull V value) {
checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED);
NodeEngine nodeEngine = getNodeEngine();
Data dataKey = nodeEngine.toData(key);
Data dataValue = nodeEngine.toData(value);
return putInternal(dataKey, dataValue, -1);
}
use of com.hazelcast.spi.impl.NodeEngine in project hazelcast by hazelcast.
the class MultiMapProxyImpl method forceUnlock.
@Override
public void forceUnlock(@Nonnull K key) {
checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
NodeEngine nodeEngine = getNodeEngine();
Data dataKey = nodeEngine.toData(key);
lockSupport.forceUnlock(nodeEngine, dataKey);
}
use of com.hazelcast.spi.impl.NodeEngine in project hazelcast by hazelcast.
the class MultiMapProxyImpl method containsKey.
@Override
public boolean containsKey(@Nonnull K key) {
checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
NodeEngine nodeEngine = getNodeEngine();
Data dataKey = nodeEngine.toData(key);
return containsInternal(dataKey, null);
}
use of com.hazelcast.spi.impl.NodeEngine in project hazelcast by hazelcast.
the class MultiMapProxyImpl method lock.
@Override
public void lock(@Nonnull K key) {
checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
NodeEngine nodeEngine = getNodeEngine();
Data dataKey = nodeEngine.toData(key);
lockSupport.lock(nodeEngine, dataKey);
}
use of com.hazelcast.spi.impl.NodeEngine in project hazelcast by hazelcast.
the class MultiMapProxyImpl method delete.
public void delete(@Nonnull Object key) {
checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
NodeEngine nodeEngine = getNodeEngine();
Data dataKey = nodeEngine.toData(key);
deleteInternal(dataKey);
}
Aggregations