A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::stores::ChunkStoreReader::LogicalState Struct Referenceabstract

Classes

struct  ChunkStep
 
struct  Frame
 

Public Types

using NextResult = std::optional< data::NodeFragment >
 
using ReadyResult = std::optional< absl::StatusOr< NextResult > >
 

Public Member Functions

size_t issued ABSL_GUARDED_BY (issue_mu)=0
 
std::vector< Frame > frames ABSL_GUARDED_BY (mu)
 
std::vector< std::shared_ptr< ChunkStoreReader > > active ABSL_GUARDED_BY (readers_mu)
 
absl::Status status ABSL_GUARDED_BY (mu)
 
bool ended ABSL_GUARDED_BY (mu)
 
bool root_final ABSL_GUARDED_BY (mu)
 
std::string mimetype ABSL_GUARDED_BY (mu)
 
std::uint64_t emitted ABSL_GUARDED_BY (mu)=0
 
 LogicalState (std::shared_ptr< ChunkStore > root, std::shared_ptr< ChunkStoreReader > reader, std::shared_ptr< ReferenceResolver > resolver, ChunkStoreReaderOptions selected)
 
 ~LogicalState ()
 
void Cancel ()
 
absl::Status Status ()
 
bool SawFinal ()
 
ChunkStep AcceptChunk (data::NodeFragment fragment) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu)
 
ReadyResult TryNextReady ()
 
absl::StatusOr< std::optional< data::NodeFragment > > Next (absl::Duration timeout)
 

Public Attributes

thread::Mutex mu
 
thread::Mutex issue_mu
 
thread::Mutex readers_mu
 
std::atomic< bool > cancelled = false
 
ChunkStoreReaderOptions options
 

Member Typedef Documentation

◆ NextResult

◆ ReadyResult

Constructor & Destructor Documentation

◆ LogicalState()

a11::stores::ChunkStoreReader::LogicalState::LogicalState ( std::shared_ptr< ChunkStore >  root,
std::shared_ptr< ChunkStoreReader >  reader,
std::shared_ptr< ReferenceResolver >  resolver,
ChunkStoreReaderOptions  selected 
)
inline

◆ ~LogicalState()

a11::stores::ChunkStoreReader::LogicalState::~LogicalState ( )
inline

Member Function Documentation

◆ ABSL_GUARDED_BY() [1/8]

size_t issued a11::stores::ChunkStoreReader::LogicalState::ABSL_GUARDED_BY ( issue_mu  )
pure virtual

◆ ABSL_GUARDED_BY() [2/8]

std::vector< Frame > frames a11::stores::ChunkStoreReader::LogicalState::ABSL_GUARDED_BY ( mu  )

◆ ABSL_GUARDED_BY() [3/8]

absl::Status status a11::stores::ChunkStoreReader::LogicalState::ABSL_GUARDED_BY ( mu  )

◆ ABSL_GUARDED_BY() [4/8]

bool ended a11::stores::ChunkStoreReader::LogicalState::ABSL_GUARDED_BY ( mu  )

◆ ABSL_GUARDED_BY() [5/8]

bool root_final a11::stores::ChunkStoreReader::LogicalState::ABSL_GUARDED_BY ( mu  )

◆ ABSL_GUARDED_BY() [6/8]

std::string mimetype a11::stores::ChunkStoreReader::LogicalState::ABSL_GUARDED_BY ( mu  )

◆ ABSL_GUARDED_BY() [7/8]

std::uint64_t emitted a11::stores::ChunkStoreReader::LogicalState::ABSL_GUARDED_BY ( mu  )
pure virtual

◆ ABSL_GUARDED_BY() [8/8]

std::vector< std::shared_ptr< ChunkStoreReader > > active a11::stores::ChunkStoreReader::LogicalState::ABSL_GUARDED_BY ( readers_mu  )

◆ AcceptChunk()

ChunkStep a11::stores::ChunkStoreReader::LogicalState::AcceptChunk ( data::NodeFragment  fragment)
inline

◆ Cancel()

void a11::stores::ChunkStoreReader::LogicalState::Cancel ( )
inline

◆ Next()

absl::StatusOr< std::optional< data::NodeFragment > > a11::stores::ChunkStoreReader::LogicalState::Next ( absl::Duration  timeout)
inline

◆ SawFinal()

bool a11::stores::ChunkStoreReader::LogicalState::SawFinal ( )
inline

◆ Status()

absl::Status a11::stores::ChunkStoreReader::LogicalState::Status ( )
inline

◆ TryNextReady()

ReadyResult a11::stores::ChunkStoreReader::LogicalState::TryNextReady ( )
inline

Member Data Documentation

◆ cancelled

std::atomic<bool> a11::stores::ChunkStoreReader::LogicalState::cancelled = false

◆ issue_mu

thread::Mutex a11::stores::ChunkStoreReader::LogicalState::issue_mu

◆ mu

thread::Mutex a11::stores::ChunkStoreReader::LogicalState::mu

◆ options

ChunkStoreReaderOptions a11::stores::ChunkStoreReader::LogicalState::options

◆ readers_mu

thread::Mutex a11::stores::ChunkStoreReader::LogicalState::readers_mu

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