use of com.hazelcast.cache.impl.CacheOperationProvider in project hazelcast by hazelcast.
the class CacheGetAllMessageTask method createOperationFactory.
@Override
protected OperationFactory createOperationFactory() {
CacheOperationProvider operationProvider = getOperationProvider(parameters.name);
CacheService service = getService(getServiceName());
ExpiryPolicy expiryPolicy = (ExpiryPolicy) service.toObject(parameters.expiryPolicy);
Set<Data> keys = new HashSet<Data>(parameters.keys);
return operationProvider.createGetAllOperationFactory(keys, expiryPolicy);
}
use of com.hazelcast.cache.impl.CacheOperationProvider in project hazelcast by hazelcast.
the class CacheGetAndReplaceMessageTask method prepareOperation.
@Override
protected Operation prepareOperation() {
CacheOperationProvider operationProvider = getOperationProvider(parameters.name);
ExpiryPolicy expiryPolicy = (ExpiryPolicy) nodeEngine.toObject(parameters.expiryPolicy);
return operationProvider.createGetAndReplaceOperation(parameters.key, parameters.value, expiryPolicy, parameters.completionId);
}
use of com.hazelcast.cache.impl.CacheOperationProvider in project hazelcast by hazelcast.
the class CachePutIfAbsentMessageTask method prepareOperation.
@Override
protected Operation prepareOperation() {
CacheOperationProvider operationProvider = getOperationProvider(parameters.name);
ExpiryPolicy expiryPolicy = (ExpiryPolicy) nodeEngine.toObject(parameters.expiryPolicy);
return operationProvider.createPutIfAbsentOperation(parameters.key, parameters.value, expiryPolicy, parameters.completionId);
}
use of com.hazelcast.cache.impl.CacheOperationProvider in project hazelcast by hazelcast.
the class CacheRemoveAllKeysMessageTask method createOperationFactory.
@Override
protected OperationFactory createOperationFactory() {
CacheOperationProvider operationProvider = getOperationProvider(parameters.name);
Set<Data> keys = new HashSet<Data>(parameters.keys);
return operationProvider.createRemoveAllOperationFactory(keys, parameters.completionId);
}
use of com.hazelcast.cache.impl.CacheOperationProvider in project hazelcast by hazelcast.
the class CacheReplaceMessageTask method prepareOperation.
@Override
protected Operation prepareOperation() {
CacheOperationProvider operationProvider = getOperationProvider(parameters.name);
ExpiryPolicy expiryPolicy = serializationService.toObject(parameters.expiryPolicy);
return operationProvider.createReplaceOperation(parameters.key, parameters.oldValue, parameters.newValue, expiryPolicy, parameters.completionId);
}
Aggregations