A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::actions::ReferenceMirrorRegistry::State Struct Referenceabstract
Inheritance diagram for a11::actions::ReferenceMirrorRegistry::State:
[legend]

Classes

struct  Key
 
struct  Mirror
 

Public Types

enum class  Phase { kStarting , kReplaying , kClosed , kFailed }
 

Public Member Functions

 State (std::shared_ptr< net::WireStream > wire, std::vector< std::string > accessible)
 
absl::StatusOr< data::NodeRef > Rewrite (const data::NodeRef &reference, const std::shared_ptr< nodes::NodeMap > &source_map)
 
absl::Status Pump (const std::shared_ptr< Mirror > &mirror, const std::shared_ptr< nodes::AsyncNode > &source, const std::shared_ptr< nodes::NodeMap > &source_map)
 
void Finish (const std::shared_ptr< Mirror > &mirror, absl::Status result)
 
absl::Status SendFailure (const std::string &id, const absl::Status &status)
 
absl::flat_hash_map< Key, std::shared_ptr< Mirror > > mirrors ABSL_GUARDED_BY (mu)
 
size_t active ABSL_GUARDED_BY (mu)=0
 

Public Attributes

std::shared_ptr< net::WireStream > stream
 
absl::flat_hash_set< std::string > direct
 
thread::Mutex mu
 

Static Public Attributes

static constexpr size_t kMaxActiveMirrors = 128
 

Member Enumeration Documentation

◆ Phase

Enumerator
kStarting 
kReplaying 
kClosed 
kFailed 

Constructor & Destructor Documentation

◆ State()

a11::actions::ReferenceMirrorRegistry::State::State ( std::shared_ptr< net::WireStream >  wire,
std::vector< std::string >  accessible 
)
inlineexplicit

Member Function Documentation

◆ ABSL_GUARDED_BY() [1/2]

absl::flat_hash_map< Key, std::shared_ptr< Mirror > > mirrors a11::actions::ReferenceMirrorRegistry::State::ABSL_GUARDED_BY ( mu  )

◆ ABSL_GUARDED_BY() [2/2]

size_t active a11::actions::ReferenceMirrorRegistry::State::ABSL_GUARDED_BY ( mu  )
pure virtual

◆ Finish()

void a11::actions::ReferenceMirrorRegistry::State::Finish ( const std::shared_ptr< Mirror > &  mirror,
absl::Status  result 
)
inline

◆ Pump()

absl::Status a11::actions::ReferenceMirrorRegistry::State::Pump ( const std::shared_ptr< Mirror > &  mirror,
const std::shared_ptr< nodes::AsyncNode > &  source,
const std::shared_ptr< nodes::NodeMap > &  source_map 
)
inline

◆ Rewrite()

absl::StatusOr< data::NodeRef > a11::actions::ReferenceMirrorRegistry::State::Rewrite ( const data::NodeRef &  reference,
const std::shared_ptr< nodes::NodeMap > &  source_map 
)
inline

◆ SendFailure()

absl::Status a11::actions::ReferenceMirrorRegistry::State::SendFailure ( const std::string &  id,
const absl::Status &  status 
)
inline

Member Data Documentation

◆ direct

absl::flat_hash_set<std::string> a11::actions::ReferenceMirrorRegistry::State::direct

◆ kMaxActiveMirrors

constexpr size_t a11::actions::ReferenceMirrorRegistry::State::kMaxActiveMirrors = 128
staticconstexpr

◆ mu

thread::Mutex a11::actions::ReferenceMirrorRegistry::State::mu

◆ stream

std::shared_ptr<net::WireStream> a11::actions::ReferenceMirrorRegistry::State::stream

The documentation for this struct was generated from the following file: