18#ifndef _DECAF_UTIL_CONCURRENT_CONCURRENTMAP_H_
19#define _DECAF_UTIL_CONCURRENT_CONCURRENTMAP_H_
38 template<
typename K,
typename V>
87 virtual bool remove(
const K& key,
const V& value ) = 0;
108 virtual bool replace(
const K& key,
const V& oldValue,
const V& newValue ) = 0;
130 virtual V
replace(
const K& key,
const V& value ) = 0;
Map()
Default constructor - does nothing.
Definition Map.h:94
Interface for a Map type that provides additional atomic putIfAbsent, remove, and replace methods alo...
Definition ConcurrentMap.h:39
virtual ~ConcurrentMap()
Definition ConcurrentMap.h:42
virtual bool remove(const K &key, const V &value)=0
Remove entry for key only if currently mapped to given value.
virtual bool replace(const K &key, const V &oldValue, const V &newValue)=0
Replace entry for key only if currently mapped to given value.
virtual V replace(const K &key, const V &value)=0
Replace entry for key only if currently mapped to some value.
virtual bool putIfAbsent(const K &key, const V &value)=0
If the specified key is not already associated with a value, associate it with the given value.
Definition AbstractExecutorService.h:28
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25