Hazelcast C++ Client
Hazelcast C++ Client Library
hazelcast::client::transactional_map Class Reference

Transactional implementation of imap. More...

#include <transactional_map.h>

+ Inheritance diagram for hazelcast::client::transactional_map:

Public Member Functions

template<typename K >
boost::future< bool > contains_key (const K &key)
 Transactional implementation of imap::contains_key(Object). More...
 
template<typename K , typename V >
boost::future< boost::optional< V > > get (const K &key)
 Transactional implementation of imap::get(Object). More...
 
template<typename K , typename V , typename R = V>
boost::future< boost::optional< R > > put (const K &key, const V &value)
 Transactional implementation of imap::put(Object, Object). More...
 
template<typename K , typename V >
boost::future< void > set (const K &key, const V &value)
 Transactional implementation of imap::set(key, value). More...
 
template<typename K , typename V , typename R = V>
boost::future< boost::optional< R > > put_if_absent (const K &key, const V &value)
 Transactional implementation of imap::putIfAbsent(key, value) More...
 
template<typename K , typename V , typename R = V>
boost::future< boost::optional< R > > replace (const K &key, const V &value)
 Transactional implementation of imap::replace(key, value). More...
 
template<typename K , typename V , typename N >
boost::future< bool > replace (const K &key, const V &old_value, const N &new_value)
 Transactional implementation of imap::replace(key, value, oldValue). More...
 
template<typename K , typename V >
boost::future< boost::optional< V > > remove (const K &key)
 Transactional implementation of imap::remove(key). More...
 
template<typename K >
boost::future< void > delete_entry (const K &key)
 Transactional implementation of imap::delete(key). More...
 
template<typename K , typename V >
boost::future< bool > remove (const K &key, const V &value)
 Transactional implementation of imap::remove(key, value). More...
 
template<typename K >
boost::future< std::vector< K > > key_set ()
 Transactional implementation of imap::keySet(). More...
 
template<typename K , typename P >
boost::future< std::vector< K > > key_set (const P &predicate)
 Transactional implementation of imap::keySet(Predicate) . More...
 
template<typename V >
boost::future< std::vector< V > > values ()
 Transactional implementation of imap::values(). More...
 
template<typename V , typename P >
boost::future< std::vector< V > > values (const P &predicate)
 Transactional implementation of imap::values(Predicate) . More...
 

Friends

class transaction_context
 

Detailed Description

Transactional implementation of imap.

See also
imap

Definition at line 27 of file transactional_map.h.

Member Function Documentation

◆ contains_key()

template<typename K >
boost::future<bool> hazelcast::client::transactional_map::contains_key ( const K &  key)
inline

Transactional implementation of imap::contains_key(Object).

See also
imap::contains_key(key)

Definition at line 36 of file transactional_map.h.

36  {
37  return contains_key_data(to_data(key));
38  }

◆ delete_entry()

template<typename K >
boost::future<void> hazelcast::client::transactional_map::delete_entry ( const K &  key)
inline

Transactional implementation of imap::delete(key).

The object to be deleted will be removed from only the current transaction context till transaction is committed.

See also
imap::delete(key)

Definition at line 130 of file transactional_map.h.

130  {
131  return delete_entry_data(to_data(key));
132  }

◆ get()

template<typename K , typename V >
boost::future<boost::optional<V> > hazelcast::client::transactional_map::get ( const K &  key)
inline

Transactional implementation of imap::get(Object).

See also
imap::get(keu)

Definition at line 46 of file transactional_map.h.

46  {
47  return to_object<V>(get_data(to_data(key)));
48  }

◆ key_set() [1/2]

template<typename K >
boost::future<std::vector<K> > hazelcast::client::transactional_map::key_set ( )
inline

Transactional implementation of imap::keySet().

See also
imap::keySet()

Definition at line 153 of file transactional_map.h.

153  {
154  return to_object_vector<K>(key_set_data());
155  }

◆ key_set() [2/2]

template<typename K , typename P >
boost::future<std::vector<K> > hazelcast::client::transactional_map::key_set ( const P &  predicate)
inline

Transactional implementation of imap::keySet(Predicate) .

See also
imap::keySet(predicate)

Definition at line 164 of file transactional_map.h.

164  {
165  return to_object_vector<K>(key_set_data(to_data(predicate)));
166  }

◆ put()

template<typename K , typename V , typename R = V>
boost::future<boost::optional<R> > hazelcast::client::transactional_map::put ( const K &  key,
const V &  value 
)
inline

Transactional implementation of imap::put(Object, Object).

The object to be put will be accessible only in the current transaction context till transaction is committed.

See also
imap::put(key, value)

Definition at line 58 of file transactional_map.h.

58  {
59  return to_object<R>(put_data(to_data(key), to_data(value)));
60  }

◆ put_if_absent()

template<typename K , typename V , typename R = V>
boost::future<boost::optional<R> > hazelcast::client::transactional_map::put_if_absent ( const K &  key,
const V &  value 
)
inline

Transactional implementation of imap::putIfAbsent(key, value)

The object to be put will be accessible only in the current transaction context till transaction is committed.

See also
imap::putIfAbsent(key, value)

Definition at line 82 of file transactional_map.h.

82  {
83  return to_object<R>(put_if_absent_data(to_data(key), to_data(value)));
84  }

◆ remove() [1/2]

template<typename K , typename V >
boost::future<boost::optional<V> > hazelcast::client::transactional_map::remove ( const K &  key)
inline

Transactional implementation of imap::remove(key).

The object to be removed will be removed from only the current transaction context till transaction is committed.

See also
imap::remove(key)

Definition at line 118 of file transactional_map.h.

118  {
119  return to_object<V>(remove_data(to_data(key)));
120  }

◆ remove() [2/2]

template<typename K , typename V >
boost::future<bool> hazelcast::client::transactional_map::remove ( const K &  key,
const V &  value 
)
inline

Transactional implementation of imap::remove(key, value).

The object to be removed will be removed from only the current transaction context till transaction is committed.

See also
imap::remove(key, value)

Definition at line 142 of file transactional_map.h.

142  {
143  return remove_data(to_data(key), to_data(value));
144  }

◆ replace() [1/2]

template<typename K , typename V , typename N >
boost::future<bool> hazelcast::client::transactional_map::replace ( const K &  key,
const V &  old_value,
const N &  new_value 
)
inline

Transactional implementation of imap::replace(key, value, oldValue).

The object to be replaced will be accessible only in the current transaction context till transaction is committed.

See also
imap::replace(key, value, oldValue)

Definition at line 106 of file transactional_map.h.

106  {
107  return replace_data(to_data(key), to_data(old_value), to_data(new_value));
108  }

◆ replace() [2/2]

template<typename K , typename V , typename R = V>
boost::future<boost::optional<R> > hazelcast::client::transactional_map::replace ( const K &  key,
const V &  value 
)
inline

Transactional implementation of imap::replace(key, value).

The object to be replaced will be accessible only in the current transaction context till transaction is committed.

See also
imap::replace(key, value)

Definition at line 94 of file transactional_map.h.

94  {
95  return to_object<R>(replace_data(to_data(key), to_data(value)));
96  }

◆ set()

template<typename K , typename V >
boost::future<void> hazelcast::client::transactional_map::set ( const K &  key,
const V &  value 
)
inline

Transactional implementation of imap::set(key, value).

The object to be set will be accessible only in the current transaction context till transaction is committed.

See also
imap::set(key, value)

Definition at line 70 of file transactional_map.h.

70  {
71  return set_data(to_data(key), to_data(value));
72  }

◆ values() [1/2]

template<typename V >
boost::future<std::vector<V> > hazelcast::client::transactional_map::values ( )
inline

Transactional implementation of imap::values().

See also
imap::values()

Definition at line 175 of file transactional_map.h.

175  {
176  return to_object_vector<V>(values_data());
177  }

◆ values() [2/2]

template<typename V , typename P >
boost::future<std::vector<V> > hazelcast::client::transactional_map::values ( const P &  predicate)
inline

Transactional implementation of imap::values(Predicate) .

See also
imap::values(Predicate)

Definition at line 185 of file transactional_map.h.

185  {
186  return to_object_vector<V>(values_data(to_data(predicate)));
187  }

The documentation for this class was generated from the following file: