Sha256: 1d2d79a9e65aabe913b7a8ec74ce81ea7f9a66af3fcc6ff7add0aa6348c84c60
Contents?: true
Size: 1.74 KB
Versions: 3
Compression:
Stored size: 1.74 KB
Contents
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2020-Present Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include <couchbase/transactions/async_attempt_context.hxx> #include <couchbase/transactions/attempt_context.hxx> #include <couchbase/transactions/transaction_options.hxx> #include <couchbase/transactions/transaction_result.hxx> #include <functional> namespace couchbase::transactions { using txn_logic = std::function<void(attempt_context&)>; using async_txn_logic = std::function<void(async_attempt_context&)>; using async_txn_complete_logic = std::function<void(couchbase::transaction_error_context, transaction_result)>; class transactions { public: virtual ~transactions() = default; virtual std::pair<transaction_error_context, transaction_result> run(txn_logic&& logic, const transaction_options& cfg = transaction_options()) = 0; virtual void run(async_txn_logic&& logic, async_txn_complete_logic&& complete_callback, const transaction_options& cfg = transaction_options()) = 0; }; } // namespace couchbase::transactions
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
couchbase-3.4.2 | ext/couchbase/couchbase/transactions.hxx |
couchbase-3.4.1 | ext/couchbase/couchbase/transactions.hxx |
couchbase-3.4.0 | ext/couchbase/couchbase/transactions.hxx |