CatapultServer
v0.5.0.1 (Elephant)
|
Augments consumer input with disruptor metadata. More...
Public Member Functions | |
DisruptorElement () | |
Creates a default disruptor element. More... | |
DisruptorElement (ConsumerInput &&input, DisruptorElementId id, const ProcessingCompleteFunc &processingComplete) | |
Creates a disruptor element around input with id and a completion handler processingComplete. More... | |
ConsumerInput & | input () |
Gets the consumer input. More... | |
const ConsumerInput & | input () const |
Gets the consumer input. More... | |
DisruptorElementId | id () const |
Gets the element id. More... | |
bool | isSkipped () const |
Returns true if the element is skipped. More... | |
ConsumerCompletionResult | completionResult () const |
Gets the current element completion result. More... | |
void | markSkipped (PositionType position, CompletionCode code) |
Marks the element as skipped at position with code. More... | |
void | markProcessingComplete () |
Calls the completion handler for the element. More... | |
Private Attributes | |
ConsumerInput | m_input |
DisruptorElementId | m_id |
ProcessingCompleteFunc | m_processingComplete |
ConsumerCompletionResult | m_result |
std::unique_ptr< utils::SpinLock > | m_pSpinLock |
Augments consumer input with disruptor metadata.
|
inline |
Creates a default disruptor element.
|
inlineexplicit |
Creates a disruptor element around input with id and a completion handler processingComplete.
|
inline |
Gets the current element completion result.
|
inline |
Gets the element id.
|
inline |
Gets the consumer input.
|
inline |
Gets the consumer input.
|
inline |
Returns true
if the element is skipped.
|
inline |
Calls the completion handler for the element.
|
inline |
Marks the element as skipped at position with code.
|
private |
|
private |
|
private |
|
private |
|
private |