CatapultServer  v0.5.0.1 (Elephant)
ConsumerUtils.h
Go to the documentation of this file.
1 
21 #pragma once
23 
24 namespace catapult {
25  namespace disruptor {
27  class ConsumerInput;
28  }
29 }
30 
31 namespace catapult { namespace consumers {
32 
34  ionet::NodeInteractionResult ToNodeInteractionResult(const Key& sourcePublicKey, const disruptor::ConsumerCompletionResult& result);
35 }}
ConsumerResults.h
catapult::disruptor::ConsumerInput
Consumer input composed of a range of entities augmented with metadata.
Definition: ConsumerInput.h:30
NodeInteractionResult.h
catapult::disruptor::ConsumerCompletionResult
Extended consumer result passed to completion callback.
Definition: DisruptorTypes.h:105
catapult::validators::ResultSeverity::Success
Validation result is success.
catapult::validators::ResultSeverity::Neutral
Validation result is neither success nor failure.
ConsumerInput.h
catapult::disruptor::ConsumerResult::CompletionCode
disruptor::CompletionCode CompletionCode
Optional code that can provide additional consumer completion information.
Definition: DisruptorTypes.h:80
catapult::ionet::NodeInteractionResult
Result from a node interaction.
Definition: NodeInteractionResult.h:28
catapult::validators::GetSeverity
constexpr ResultSeverity GetSeverity(ValidationResult result)
Extracts the encoded result severity from result.
Definition: ValidationResult.h:80
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::ionet::NodeInteractionResultCode
NodeInteractionResultCode
Possible node interaction result codes.
Definition: NodeInteractionResultCode.h:42
catapult::consumers::ToNodeInteractionResult
ionet::NodeInteractionResult ToNodeInteractionResult(const Key &sourcePublicKey, const disruptor::ConsumerCompletionResult &result)
Converts a consumer completion result to a node interaction result with public key sourcePublicKey.
Definition: ConsumerUtils.cpp:28
catapult::utils::ByteArray
Base class for wrappers of byte array types, to provide some type-safety.
Definition: ByteArray.h:29
ConsumerUtils.h
catapult::Key
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41