use of com.hazelcast.cache.impl.CacheOperationProvider in project hazelcast by hazelcast.
the class CacheEntryProcessorMessageTask method prepareOperation.
@Override
protected Operation prepareOperation() {
CacheService service = getService(getServiceName());
CacheOperationProvider operationProvider = getOperationProvider(parameters.name);
EntryProcessor entryProcessor = (EntryProcessor) service.toObject(parameters.entryProcessor);
ArrayList argumentsList = new ArrayList(parameters.arguments.size());
for (Data data : parameters.arguments) {
argumentsList.add(service.toObject(data));
}
return operationProvider.createEntryProcessorOperation(parameters.key, parameters.completionId, entryProcessor, argumentsList.toArray());
}
use of com.hazelcast.cache.impl.CacheOperationProvider in project hazelcast by hazelcast.
the class CacheGetMessageTask method prepareOperation.
@Override
protected Operation prepareOperation() {
CacheOperationProvider operationProvider = getOperationProvider(parameters.name);
ExpiryPolicy expiryPolicy = (ExpiryPolicy) nodeEngine.toObject(parameters.expiryPolicy);
return operationProvider.createGetOperation(parameters.key, expiryPolicy);
}
use of com.hazelcast.cache.impl.CacheOperationProvider in project hazelcast by hazelcast.
the class CacheLoadAllMessageTask method createOperationFactory.
@Override
protected OperationFactory createOperationFactory() {
CacheOperationProvider operationProvider = getOperationProvider(parameters.name);
Set<Data> keys = new HashSet<Data>(parameters.keys);
return operationProvider.createLoadAllOperationFactory(keys, parameters.replaceExistingValues);
}
use of com.hazelcast.cache.impl.CacheOperationProvider in project hazelcast by hazelcast.
the class CachePutAllMessageTask method prepareOperation.
@Override
protected Operation prepareOperation() {
CacheOperationProvider operationProvider = getOperationProvider(parameters.name);
ExpiryPolicy expiryPolicy = (ExpiryPolicy) nodeEngine.toObject(parameters.expiryPolicy);
return operationProvider.createPutAllOperation(parameters.entries, expiryPolicy, parameters.completionId);
}
use of com.hazelcast.cache.impl.CacheOperationProvider in project hazelcast by hazelcast.
the class CachePutMessageTask method prepareOperation.
@Override
protected Operation prepareOperation() {
CacheOperationProvider operationProvider = getOperationProvider(parameters.name);
ExpiryPolicy expiryPolicy = (ExpiryPolicy) nodeEngine.toObject(parameters.expiryPolicy);
return operationProvider.createPutOperation(parameters.key, parameters.value, expiryPolicy, parameters.get, parameters.completionId);
}
Aggregations