Search in sources :

Example 21 with MapOperationProvider

use of com.hazelcast.map.impl.operation.MapOperationProvider in project hazelcast by hazelcast.

the class MapSetMessageTask method prepareOperation.

@Override
protected Operation prepareOperation() {
    MapOperationProvider operationProvider = getMapOperationProvider(parameters.name);
    MapOperation op = operationProvider.createSetOperation(parameters.name, parameters.key, parameters.value, parameters.ttl);
    op.setThreadId(parameters.threadId);
    return op;
}
Also used : MapOperationProvider(com.hazelcast.map.impl.operation.MapOperationProvider) MapOperation(com.hazelcast.map.impl.operation.MapOperation)

Example 22 with MapOperationProvider

use of com.hazelcast.map.impl.operation.MapOperationProvider in project hazelcast by hazelcast.

the class MapSubmitToKeyMessageTask method prepareOperation.

@Override
protected Operation prepareOperation() {
    EntryProcessor processor = serializationService.toObject(parameters.entryProcessor);
    MapOperationProvider operationProvider = getMapOperationProvider(parameters.name);
    MapOperation op = operationProvider.createEntryOperation(parameters.name, parameters.key, processor);
    op.setThreadId(parameters.threadId);
    return op;
}
Also used : EntryProcessor(com.hazelcast.map.EntryProcessor) MapOperationProvider(com.hazelcast.map.impl.operation.MapOperationProvider) MapOperation(com.hazelcast.map.impl.operation.MapOperation)

Example 23 with MapOperationProvider

use of com.hazelcast.map.impl.operation.MapOperationProvider in project hazelcast by hazelcast.

the class MapTryPutMessageTask method prepareOperation.

@Override
protected Operation prepareOperation() {
    MapOperationProvider operationProvider = getMapOperationProvider(parameters.name);
    MapOperation op = operationProvider.createTryPutOperation(parameters.name, parameters.key, parameters.value, parameters.timeout);
    op.setThreadId(parameters.threadId);
    return op;
}
Also used : MapOperationProvider(com.hazelcast.map.impl.operation.MapOperationProvider) MapOperation(com.hazelcast.map.impl.operation.MapOperation)

Example 24 with MapOperationProvider

use of com.hazelcast.map.impl.operation.MapOperationProvider in project hazelcast by hazelcast.

the class MapExecuteOnKeyMessageTask method prepareOperation.

@Override
protected Operation prepareOperation() {
    EntryProcessor processor = serializationService.toObject(parameters.entryProcessor);
    MapOperationProvider operationProvider = getMapOperationProvider(parameters.name);
    MapOperation op = operationProvider.createEntryOperation(parameters.name, parameters.key, processor);
    op.setThreadId(parameters.threadId);
    return op;
}
Also used : EntryProcessor(com.hazelcast.map.EntryProcessor) MapOperationProvider(com.hazelcast.map.impl.operation.MapOperationProvider) MapOperation(com.hazelcast.map.impl.operation.MapOperation)

Example 25 with MapOperationProvider

use of com.hazelcast.map.impl.operation.MapOperationProvider in project hazelcast by hazelcast.

the class MapGetMessageTask method prepareOperation.

@Override
protected Operation prepareOperation() {
    MapOperationProvider operationProvider = getMapOperationProvider(parameters.name);
    MapOperation operation = operationProvider.createGetOperation(parameters.name, parameters.key);
    operation.setThreadId(parameters.threadId);
    return operation;
}
Also used : MapOperationProvider(com.hazelcast.map.impl.operation.MapOperationProvider) MapOperation(com.hazelcast.map.impl.operation.MapOperation)

Aggregations

MapOperationProvider (com.hazelcast.map.impl.operation.MapOperationProvider)25 MapOperation (com.hazelcast.map.impl.operation.MapOperation)20 EntryProcessor (com.hazelcast.map.EntryProcessor)4 Data (com.hazelcast.nio.serialization.Data)2 Predicate (com.hazelcast.query.Predicate)2 Future (java.util.concurrent.Future)2 EntryView (com.hazelcast.core.EntryView)1 MapEntries (com.hazelcast.map.impl.MapEntries)1 RemoveFromLoadAllOperation (com.hazelcast.map.impl.operation.RemoveFromLoadAllOperation)1 MapMergePolicy (com.hazelcast.map.merge.MapMergePolicy)1 NodeEngine (com.hazelcast.spi.NodeEngine)1 Operation (com.hazelcast.spi.Operation)1 OperationResponseHandler (com.hazelcast.spi.OperationResponseHandler)1 OperationService (com.hazelcast.spi.OperationService)1