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 38 of file transactional_map.h.

39  {
40  return contains_key_data(to_data(key));
41  }

◆ 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 151 of file transactional_map.h.

152  {
153  return delete_entry_data(to_data(key));
154  }

◆ 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 49 of file transactional_map.h.

50  {
51  return to_object<V>(get_data(to_data(key)));
52  }

◆ 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 177 of file transactional_map.h.

178  {
179  return to_object_vector<K>(key_set_data());
180  }

◆ 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 189 of file transactional_map.h.

190  {
191  return to_object_vector<K>(key_set_data(to_data(predicate)));
192  }

◆ 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 63 of file transactional_map.h.

64  {
65  return to_object<R>(put_data(to_data(key), to_data(value)));
66  }

◆ 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 91 of file transactional_map.h.

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

◆ 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 137 of file transactional_map.h.

138  {
139  return to_object<V>(remove_data(to_data(key)));
140  }

◆ 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 165 of file transactional_map.h.

166  {
167  return remove_data(to_data(key), to_data(value));
168  }

◆ 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 120 of file transactional_map.h.

123  {
124  return replace_data(
125  to_data(key), to_data(old_value), to_data(new_value));
126  }

◆ 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 106 of file transactional_map.h.

107  {
108  return to_object<R>(replace_data(to_data(key), to_data(value)));
109  }

◆ 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 77 of file transactional_map.h.

78  {
79  return set_data(to_data(key), to_data(value));
80  }

◆ 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 201 of file transactional_map.h.

202  {
203  return to_object_vector<V>(values_data());
204  }

◆ 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 212 of file transactional_map.h.

213  {
214  return to_object_vector<V>(values_data(to_data(predicate)));
215  }

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