use of com.hazelcast.replicatedmap.impl.operation.RemoveOperation in project hazelcast by hazelcast.
the class ReplicatedMapProxy method remove.
@Override
public V remove(Object key) {
isNotNull(key, "key");
Data dataKey = nodeEngine.toData(key);
int partitionId = partitionService.getPartitionId(key);
RemoveOperation removeOperation = new RemoveOperation(getName(), dataKey);
InternalCompletableFuture<Object> future = getOperationService().invokeOnPartition(getServiceName(), removeOperation, partitionId);
VersionResponsePair result = (VersionResponsePair) future.join();
return nodeEngine.toObject(result.getResponse());
}
Aggregations