24#ifndef CHANGESTREAMS_APPLY_METRICS_WORKER_METRICS_H
25#define CHANGESTREAMS_APPLY_METRICS_WORKER_METRICS_H
Abstract class for time based metrics implementations.
Definition: time_based_metric_interface.h:32
Abstract class for classes that contain metrics related to transaction execution in applier workers.
Definition: worker_metrics.h:34
virtual int64_t get_transaction_ongoing_progress_size() const =0
Gets the executed size of the ongoing transaction.
virtual void set_transaction_ongoing_full_size(int64_t amount)=0
set the full size of the ongoing transaction.
virtual ~Worker_metrics()=default
virtual void set_transaction_type(Transaction_type_info type_info)=0
Set the type for the transaction being currently processed.
virtual void inc_transaction_ongoing_progress_size(int64_t amount)=0
increment the executed size of the ongoing transaction.
virtual void reset_transaction_ongoing_progress_size()=0
Resets the the executed size of the ongoing transaction to 0.
Transaction_type_info
This class helps signaling a transactions as DDL or DML.
Definition: worker_metrics.h:37
virtual Time_based_metric_interface & get_waits_due_to_commit_order()=0
Return time metric for waits on commit order.
virtual void reset()=0
Resets the instruments on this instance.
virtual Transaction_type_info get_transaction_type() const =0
Returns the type of the currently being processed transaction.
virtual int64_t get_transaction_ongoing_full_size() const =0
Gets the full size of the ongoing transaction.
Definition: applier_metrics.cc:27