|
| static a11::internal::CallbackScheduler & | Scheduler () |
| |
| static void | CompleteElements (std::vector< Element > elements, std::vector< std::uint32_t > sequences, const absl::Status &status) |
| |
◆ Lifecycle
| Enumerator |
|---|
| kNone | |
| kClose | |
| kAbort | |
| kCancel | |
◆ Operation
| Enumerator |
|---|
| kNone | |
| kWrite | |
| kClose | |
◆ State()
◆ ABSL_GUARDED_BY() [1/21]
| std::uint64_t next_offset_seq a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [2/21]
| std::uint64_t next_sticky_seq a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [3/21]
| std::string current_mimetype a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [4/21]
| std::deque< Element > queue a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [5/21]
| std::deque< Element > pending_queue a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [6/21]
| std::optional< absl::Status > status a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [7/21]
| bool closing a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [8/21]
| std::optional< absl::Status > stop_status a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [9/21]
| Lifecycle lifecycle a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [10/21]
| bool lifecycle_completed a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [11/21]
| std::shared_ptr< a11::Promise< a11::Unit > > lifecycle_promise a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [12/21]
| a11::Task lifecycle_future a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [13/21]
| std::vector< std::shared_ptr< a11::Promise< a11::Unit > > > drain_waiters a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [14/21]
| std::vector< std::shared_ptr< net::WireStream > > attached_streams a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [15/21]
| bool queued a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [16/21]
| Operation operation a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [17/21]
| a11::Future< std::vector< std::uint32_t > > active_write a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [18/21]
| a11::Future< absl::Status > active_close a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
◆ ABSL_GUARDED_BY() [19/21]
| size_t outstanding a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
|
pure virtual |
◆ ABSL_GUARDED_BY() [20/21]
| size_t tees_in_flight a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
|
pure virtual |
◆ ABSL_GUARDED_BY() [21/21]
| std::uint64_t operation_generation a11::stores::ChunkStoreWriter::State::ABSL_GUARDED_BY |
( |
mu |
| ) |
|
|
pure virtual |
◆ AdmitPendingLocked()
| void a11::stores::ChunkStoreWriter::State::AdmitPendingLocked |
( |
std::vector< std::shared_ptr< a11::Promise< a11::Unit > > > * |
admitted | ) |
|
|
inline |
◆ ApplyStickyMimetypeLocked()
| void a11::stores::ChunkStoreWriter::State::ApplyStickyMimetypeLocked |
( |
data::Chunk & |
chunk, |
|
|
bool |
explicit_sequence_gap |
|
) |
| |
|
inline |
◆ CloseDone()
| void a11::stores::ChunkStoreWriter::State::CloseDone |
( |
std::uint64_t |
generation, |
|
|
const absl::Status & |
requested_status, |
|
|
const absl::Status & |
tee_status, |
|
|
const absl::StatusOr< absl::Status > & |
result |
|
) |
| |
|
inline |
◆ CompleteElements()
| static void a11::stores::ChunkStoreWriter::State::CompleteElements |
( |
std::vector< Element > |
elements, |
|
|
std::vector< std::uint32_t > |
sequences, |
|
|
const absl::Status & |
status |
|
) |
| |
|
inlinestatic |
◆ Drive()
| void a11::stores::ChunkStoreWriter::State::Drive |
( |
| ) |
|
|
inline |
Run the state machine until it has nothing left to do without waiting.
Driven on whichever thread asked – Flush() from an awaiting caller, the scheduler from Wake() – so see a11/concurrency/inline_pump.h for why re-entry is bounded by a count rather than marked per thread.
◆ DriveOnce()
| void a11::stores::ChunkStoreWriter::State::DriveOnce |
( |
| ) |
|
|
inline |
◆ FinishTee()
| void a11::stores::ChunkStoreWriter::State::FinishTee |
( |
absl::Status |
tee_status | ) |
|
|
inline |
◆ InstallWrite()
| void a11::stores::ChunkStoreWriter::State::InstallWrite |
( |
const a11::Future< std::vector< std::uint32_t > > & |
pending, |
|
|
std::uint64_t |
generation |
|
) |
| |
|
inline |
◆ RedrivePump()
| void a11::stores::ChunkStoreWriter::State::RedrivePump |
( |
| ) |
|
|
inline |
Hand the pump another pass, from inside a turn or from outside one.
◆ Scheduler()
| static a11::internal::CallbackScheduler & a11::stores::ChunkStoreWriter::State::Scheduler |
( |
| ) |
|
|
inlinestatic |
◆ StartClose()
| void a11::stores::ChunkStoreWriter::State::StartClose |
( |
std::uint64_t |
generation, |
|
|
absl::Status |
requested_status |
|
) |
| |
|
inline |
◆ StartWrite()
| void a11::stores::ChunkStoreWriter::State::StartWrite |
( |
std::uint64_t |
generation | ) |
|
|
inline |
◆ TeeClose()
| absl::Status a11::stores::ChunkStoreWriter::State::TeeClose |
( |
const absl::Status & |
close_status | ) |
|
|
inline |
◆ Wake()
| void a11::stores::ChunkStoreWriter::State::Wake |
( |
| ) |
|
|
inline |
◆ WriteDone()
| void a11::stores::ChunkStoreWriter::State::WriteDone |
( |
std::uint64_t |
generation, |
|
|
const absl::StatusOr< std::vector< std::uint32_t > > & |
result |
|
) |
| |
|
inline |
◆ in_flight_batch
| std::optional<Batch> a11::stores::ChunkStoreWriter::State::in_flight_batch |
◆ mu
| thread::Mutex a11::stores::ChunkStoreWriter::State::mu |
|
mutable |
◆ options
◆ pump
◆ store
| const std::shared_ptr<ChunkStore> a11::stores::ChunkStoreWriter::State::store |
The documentation for this struct was generated from the following file: