OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
parsec/runtime_locking_shard/messages.hpp
Go to the documentation of this file.
1// Copyright (c) 2021 MIT Digital Currency Initiative,
2// Federal Reserve Bank of Boston
3// Distributed under the MIT software license, see the accompanying
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6#ifndef OPENCBDC_TX_SRC_PARSEC_RUNTIME_LOCKING_SHARD_MESSAGES_H_
7#define OPENCBDC_TX_SRC_PARSEC_RUNTIME_LOCKING_SHARD_MESSAGES_H_
8
9#include "interface.hpp"
11
26
36
42
48
54
60
62 using request = std::variant<try_lock_request,
72
82
86
92
97}
98
99#endif
Buffer to store and retrieve byte data.
Definition buffer.hpp:15
std::optional< shard_error > prepare_return_type
Return type from a prepare operation. An error, if applicable.
std::variant< value_type, shard_error > try_lock_return_type
Return type from a try lock operation.
std::variant< get_tickets_success_type, error_code > get_tickets_return_type
Return type from a get tickets operation.
std::variant< tickets_type, error_code > get_tickets_return_type
Return type from a get tickets operation.
std::unordered_map< key_type, value_type, hashing::const_sip_hash< key_type > > state_type
Type for state updates to a shard.
std::optional< error_code > return_type
Return type from a prepare operation. An error, if applicable.
std::variant< replicated_prepare_request, commit_request, finish_request, replicated_get_tickets_request > replicated_request
Shard replicated state machine request type.
std::variant< try_lock_request, prepare_request, commit_request, rollback_request, finish_request, get_tickets_request > request
RPC request message type.
std::variant< replicated_shard_interface::return_type, replicated_shard_interface::get_tickets_return_type > replicated_response
Shard replicated state machine response type.
std::variant< interface::try_lock_return_type, interface::prepare_return_type, interface::get_tickets_return_type > response
RPC response message type.
parsec::ticket_machine::ticket_number_type ticket_number_type
Type for a ticket number.
std:: unordered_map< key_type, value_type, hashing::const_sip_hash< key_type > > state_update_type
Type for state updates to a shard. A map of keys and their new values.
Message for retrieving unfinished tickets from the replicated state machine.
replicated_shard_interface::state_type m_state_update
State updates to apply if the ticket is committed.