CatapultServer  v0.5.0.1 (Elephant)
catapult::disruptor::ConsumerEntry Class Reference

Holds information about a consumer. More...

Public Member Functions

 ConsumerEntry (size_t level)
 Creates an entry with a level and position. More...
 
PositionType advance ()
 Advances the position. More...
 
PositionType position () const
 Returns current position (in the circular buffer). More...
 
size_t level () const
 Returns consumer level. More...
 

Private Attributes

const size_t m_level
 
PositionType m_position
 

Detailed Description

Holds information about a consumer.

Constructor & Destructor Documentation

◆ ConsumerEntry()

catapult::disruptor::ConsumerEntry::ConsumerEntry ( size_t  level)
inlineexplicit

Creates an entry with a level and position.

Member Function Documentation

◆ advance()

PositionType catapult::disruptor::ConsumerEntry::advance ( )
inline

Advances the position.

Here is the caller graph for this function:

◆ level()

size_t catapult::disruptor::ConsumerEntry::level ( ) const
inline

Returns consumer level.

Here is the caller graph for this function:

◆ position()

PositionType catapult::disruptor::ConsumerEntry::position ( ) const
inline

Returns current position (in the circular buffer).

Here is the caller graph for this function:

Member Data Documentation

◆ m_level

const size_t catapult::disruptor::ConsumerEntry::m_level
private

◆ m_position

PositionType catapult::disruptor::ConsumerEntry::m_position
private

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