CatapultServer
v0.5.0.1 (Elephant)
|
Class that lets a harvester create a block and supplies the block to a consumer. More...
Public Types | |
using | TaskOptions = ScheduledHarvesterTaskOptions |
Public Member Functions | |
ScheduledHarvesterTask (const ScheduledHarvesterTaskOptions &options, std::unique_ptr< Harvester > &&pHarvester) | |
Creates a scheduled harvesting task around options and a pHarvester. More... | |
void | harvest () |
Private Attributes | |
const decltype(TaskOptions::HarvestingAllowed) | m_harvestingAllowed |
const decltype(TaskOptions::LastBlockElementSupplier) | m_lastBlockElementSupplier |
const decltype(TaskOptions::TimeSupplier) | m_timeSupplier |
const decltype(TaskOptions::RangeConsumer) | m_rangeConsumer |
std::unique_ptr< Harvester > | m_pHarvester |
std::atomic_bool | m_isAnyHarvestedBlockPending |
Class that lets a harvester create a block and supplies the block to a consumer.
|
inlineexplicit |
Creates a scheduled harvesting task around options and a pHarvester.
void catapult::harvesting::ScheduledHarvesterTask::harvest | ( | ) |
Triggers the harvesting process and in case of successfull block creation supplies the block to the consumer.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |