OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
interface.hpp File Reference
#include "parsec/ticket_machine/interface.hpp"
#include "util/common/buffer.hpp"
#include "util/common/hashmap.hpp"
#include <functional>
#include <unordered_map>
Include dependency graph for parsec/runtime_locking_shard/interface.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cbdc::parsec::runtime_locking_shard::wounded_details
 Details about wounded error code. More...
 
struct  cbdc::parsec::runtime_locking_shard::shard_error
 
class  cbdc::parsec::runtime_locking_shard::interface
 Interface for a runtime locking shard. More...
 

Namespaces

namespace  cbdc
 
namespace  cbdc::parsec
 
namespace  cbdc::parsec::runtime_locking_shard
 

Typedefs

using cbdc::parsec::runtime_locking_shard::ticket_number_type = parsec::ticket_machine::ticket_number_type
 Type for a ticket number.
 
using cbdc::parsec::runtime_locking_shard::key_type = buffer
 Type for keys held by shards.
 
using cbdc::parsec::runtime_locking_shard::value_type = buffer
 Type for values held by shards.
 
using cbdc::parsec::runtime_locking_shard::broker_id_type = size_t
 Type for the ID of a broker.
 
using cbdc::parsec::runtime_locking_shard::state_update_type
 Type for state updates to a shard. A map of keys and their new values.
 

Enumerations

enum class  cbdc::parsec::runtime_locking_shard::lock_type : uint8_t { cbdc::parsec::runtime_locking_shard::read = 0 , cbdc::parsec::runtime_locking_shard::write = 1 }
 Types of key lock supported by shards. More...
 
enum class  cbdc::parsec::runtime_locking_shard::error_code : uint8_t {
  cbdc::parsec::runtime_locking_shard::prepared , cbdc::parsec::runtime_locking_shard::wounded , cbdc::parsec::runtime_locking_shard::lock_held , cbdc::parsec::runtime_locking_shard::lock_queued ,
  cbdc::parsec::runtime_locking_shard::unknown_ticket , cbdc::parsec::runtime_locking_shard::lock_not_held , cbdc::parsec::runtime_locking_shard::state_update_with_read_lock , cbdc::parsec::runtime_locking_shard::not_prepared ,
  cbdc::parsec::runtime_locking_shard::committed , cbdc::parsec::runtime_locking_shard::not_committed , cbdc::parsec::runtime_locking_shard::internal_error
}
 Error codes returned by methods on shards. More...
 
enum class  cbdc::parsec::runtime_locking_shard::ticket_state : uint8_t { cbdc::parsec::runtime_locking_shard::begun , cbdc::parsec::runtime_locking_shard::wounded , cbdc::parsec::runtime_locking_shard::prepared , cbdc::parsec::runtime_locking_shard::committed }
 Ticket states returned by shards for broker recovery purposes. More...