Hazelcast C++ Client
Hazelcast C++ Client Library
transactional_list.h
1
/*
2
* Copyright (c) 2008-2022, 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/TransactionalListImpl.h"
19
20
namespace
hazelcast {
21
namespace
client {
25
class
transactional_list
:
public
proxy::TransactionalListImpl
26
{
27
friend
class
transaction_context
;
28
29
public
:
35
template
<
typename
E>
36
boost::future<bool>
add
(
const
E& e)
37
{
38
return
proxy::TransactionalListImpl::add(to_data(e));
39
}
40
46
template
<
typename
E>
47
boost::future<bool>
remove
(
const
E& e)
48
{
49
return
proxy::TransactionalListImpl::remove(to_data(e));
50
}
51
52
private
:
53
transactional_list
(
const
std::string& instance_name,
54
txn::TransactionProxy& context)
55
: proxy::TransactionalListImpl(instance_name, context)
56
{}
57
};
58
}
// namespace client
59
}
// namespace hazelcast
hazelcast::client::transaction_context
Provides a context to do transactional operations; so beginning/committing transactions,...
Definition:
transaction_context.h:64
hazelcast::client::transactional_list
Transactional implementation of ilist.
Definition:
transactional_list.h:26
hazelcast::client::transactional_list::remove
boost::future< bool > remove(const E &e)
Add item from transactional list.
Definition:
transactional_list.h:47
hazelcast::client::transactional_list::add
boost::future< bool > add(const E &e)
Add new item to transactional list.
Definition:
transactional_list.h:36
hazelcast
include
hazelcast
client
transactional_list.h
Generated on Fri Dec 30 2022 13:55:31 for Hazelcast C++ Client by
1.9.1