CatapultServer  v0.5.0.1 (Elephant)
catapult::validators::ParallelValidationPolicy Class Referenceabstract

A parallel validation policy that performs parallel validations on multiple threads. More...

Public Member Functions

virtual ~ParallelValidationPolicy ()=default
 
virtual thread::future< ValidationResultvalidateShortCircuit (const model::WeakEntityInfos &entityInfos, const ValidationFunctions &validationFunctions) const =0
 Validates all entityInfos using validationFunctions and short circuits on first failure. More...
 
virtual thread::future< std::vector< ValidationResult > > validateAll (const model::WeakEntityInfos &entityInfos, const ValidationFunctions &validationFunctions) const =0
 Validates all entityInfos using validationFunctions and does NOT short circuit on failures. More...
 

Detailed Description

A parallel validation policy that performs parallel validations on multiple threads.

Constructor & Destructor Documentation

◆ ~ParallelValidationPolicy()

virtual catapult::validators::ParallelValidationPolicy::~ParallelValidationPolicy ( )
virtualdefault

Member Function Documentation

◆ validateAll()

virtual thread::future<std::vector<ValidationResult> > catapult::validators::ParallelValidationPolicy::validateAll ( const model::WeakEntityInfos entityInfos,
const ValidationFunctions validationFunctions 
) const
pure virtual

Validates all entityInfos using validationFunctions and does NOT short circuit on failures.

◆ validateShortCircuit()

virtual thread::future<ValidationResult> catapult::validators::ParallelValidationPolicy::validateShortCircuit ( const model::WeakEntityInfos entityInfos,
const ValidationFunctions validationFunctions 
) const
pure virtual

Validates all entityInfos using validationFunctions and short circuits on first failure.


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