Modern C++ Kafka API
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
KAFKA_API::Timestamp Struct Reference

The time point together with the type. More...

#include <Timestamp.h>

Public Types

enum class  Type { NotAvailable , CreateTime , LogAppendTime }
 
using Value = std::int64_t
 

Public Member Functions

 Timestamp (Value v=0, Type t=Type::NotAvailable)
 
 Timestamp (Value v, rd_kafka_timestamp_type_t t)
 
 operator std::chrono::time_point< std::chrono::system_clock > () const
 
std::string toString () const
 Obtains explanatory string.
 

Static Public Member Functions

static Type convertType (rd_kafka_timestamp_type_t tstype)
 
static std::string toString (Type t)
 
static std::string toString (Value v)
 

Public Attributes

Value msSinceEpoch
 The milliseconds since epoch.
 
Type type
 The type shows what the msSinceEpoch means (CreateTime or LogAppendTime).
 

Detailed Description

The time point together with the type.


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