ObjectBox C and C++ API  4.0.3
obx::SyncClientTimeListener Class Referenceabstract

List. More...

#include <objectbox-sync.hpp>

Inheritance diagram for obx::SyncClientTimeListener:
Inheritance graph

Public Types

using TimePoint = std::chrono::time_point< std::chrono::system_clock, std::chrono::nanoseconds >
 

Public Member Functions

virtual ~SyncClientTimeListener ()=default
 
virtual void serverTime (TimePoint time) noexcept=0
 Called when a server time information is received on the client. More...
 

Detailed Description

List.

Listens to sync time information events on a sync client.

Member Typedef Documentation

◆ TimePoint

using obx::SyncClientTimeListener::TimePoint = std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>

Constructor & Destructor Documentation

◆ ~SyncClientTimeListener()

virtual obx::SyncClientTimeListener::~SyncClientTimeListener ( )
virtualdefault

Member Function Documentation

◆ serverTime()

virtual void obx::SyncClientTimeListener::serverTime ( TimePoint  time)
pure virtualnoexcept

Called when a server time information is received on the client.

Parameters
time- current server timestamp since Unix epoch