Search in sources :

Example 26 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)

Example 27 with MapOperationProvider

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

the class MapPutIfAbsentMessageTask method prepareOperation.

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

Example 28 with MapOperationProvider

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

the class MapRemoveIfSameMessageTask method prepareOperation.

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

Example 29 with MapOperationProvider

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

the class MapRemoveMessageTask method prepareOperation.

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

Example 30 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, UNSET);
    op.setThreadId(parameters.threadId);
    return op;
}
Also used : MapOperationProvider(com.hazelcast.map.impl.operation.MapOperationProvider) MapOperation(com.hazelcast.map.impl.operation.MapOperation)

Aggregations

MapOperationProvider (com.hazelcast.map.impl.operation.MapOperationProvider)35 MapOperation (com.hazelcast.map.impl.operation.MapOperation)25 EntryProcessor (com.hazelcast.map.EntryProcessor)6 Future (java.util.concurrent.Future)4 IterationPointer (com.hazelcast.internal.iteration.IterationPointer)3 Data (com.hazelcast.internal.serialization.Data)3 Predicate (com.hazelcast.query.Predicate)3 SerializationService (com.hazelcast.internal.serialization.SerializationService)2 MapMergeTypes (com.hazelcast.spi.merge.SplitBrainMergeTypes.MapMergeTypes)2 EntryView (com.hazelcast.core.EntryView)1 HazelcastInstance (com.hazelcast.core.HazelcastInstance)1 InternalPartitionService (com.hazelcast.internal.partition.InternalPartitionService)1 MapEntries (com.hazelcast.map.impl.MapEntries)1 MapService (com.hazelcast.map.impl.MapService)1 MapServiceContext (com.hazelcast.map.impl.MapServiceContext)1 SimpleEntryView (com.hazelcast.map.impl.SimpleEntryView)1 RemoveFromLoadAllOperation (com.hazelcast.map.impl.operation.RemoveFromLoadAllOperation)1 Query (com.hazelcast.map.impl.query.Query)1 MapMergePolicy (com.hazelcast.map.merge.MapMergePolicy)1 Data (com.hazelcast.nio.serialization.Data)1