Hazelcast C++ Client
Hazelcast C++ Client Library
transactional_set.h
1
/*
2
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
#pragma once
17
18
#include "hazelcast/client/proxy/TransactionalSetImpl.h"
19
20
namespace
hazelcast {
21
namespace
client {
25
class
transactional_set
:
public
proxy::TransactionalSetImpl {
26
friend
class
transaction_context
;
27
public
:
33
template
<
typename
E>
34
boost::future<bool>
add
(
const
E &e) {
35
return
proxy::TransactionalSetImpl::add_data(to_data(e));
36
}
37
43
template
<
typename
E>
44
boost::future<bool>
remove
(
const
E &e) {
45
return
proxy::TransactionalSetImpl::remove_data(to_data(e));
46
}
47
48
private
:
49
transactional_set
(
const
std::string &name, txn::TransactionProxy &transaction_proxy)
50
: TransactionalSetImpl(name, transaction_proxy) {}
51
};
52
}
53
}
54
hazelcast::client::transaction_context
Provides a context to do transactional operations; so beginning/committing transactions,...
Definition:
transaction_context.h:60
hazelcast::client::transactional_set
Transactional implementation of iset.
Definition:
transactional_set.h:25
hazelcast::client::transactional_set::remove
boost::future< bool > remove(const E &e)
Add item from transactional set.
Definition:
transactional_set.h:44
hazelcast::client::transactional_set::add
boost::future< bool > add(const E &e)
Add new item to transactional set.
Definition:
transactional_set.h:34
hazelcast
include
hazelcast
client
transactional_set.h
Generated on Thu May 6 2021 17:55:14 for Hazelcast C++ Client by
1.9.1