use of com.hazelcast.nio.serialization.Data in project hazelcast by hazelcast.
the class MapProxyImpl method set.
@Override
public void set(K k, V v, long ttl, TimeUnit timeunit) {
checkNotNull(k, NULL_KEY_IS_NOT_ALLOWED);
checkNotNull(v, NULL_VALUE_IS_NOT_ALLOWED);
Data key = toData(k, partitionStrategy);
Data value = toData(v);
setInternal(key, value, ttl, timeunit);
}
use of com.hazelcast.nio.serialization.Data in project hazelcast by hazelcast.
the class MapProxyImpl method tryRemove.
@Override
public boolean tryRemove(K key, long timeout, TimeUnit timeunit) {
checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
Data dataKey = toData(key, partitionStrategy);
return tryRemoveInternal(dataKey, timeout, timeunit);
}
use of com.hazelcast.nio.serialization.Data in project hazelcast by hazelcast.
the class MapProxyImpl method unlock.
@Override
public void unlock(K key) {
checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
NodeEngine nodeEngine = getNodeEngine();
Data dataKey = toData(key, partitionStrategy);
lockSupport.unlock(nodeEngine, dataKey);
}
use of com.hazelcast.nio.serialization.Data in project hazelcast by hazelcast.
the class MapProxyImpl method putAsync.
@Override
public ICompletableFuture<V> putAsync(K key, V value, long ttl, TimeUnit timeunit) {
checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED);
Data dataKey = toData(key, partitionStrategy);
Data dataValue = toData(value);
return new DelegatingFuture<V>(putAsyncInternal(dataKey, dataValue, ttl, timeunit), getNodeEngine().getSerializationService());
}
use of com.hazelcast.nio.serialization.Data in project hazelcast by hazelcast.
the class MapProxyImpl method getAsync.
@Override
public ICompletableFuture<V> getAsync(K k) {
checkNotNull(k, NULL_KEY_IS_NOT_ALLOWED);
Data key = toData(k, partitionStrategy);
NodeEngine nodeEngine = getNodeEngine();
return new DelegatingFuture<V>(getAsyncInternal(key), nodeEngine.getSerializationService());
}
Aggregations