All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mageddo.tobby.replicator.ReplicatorContextVars Maven / Gradle / Ivy

There is a newer version: 2.1.6-alpha
Show newest version
package com.mageddo.tobby.replicator;

import java.time.Duration;

import lombok.AccessLevel;
import lombok.Builder;
import lombok.Value;

@Value
@Builder(access = AccessLevel.PACKAGE)
public class ReplicatorContextVars {
  /**
   * Records processed in the last wave.
   */
  private int waveProcessed;

  /**
   * The duration of the last wave
   */
  private Duration waveDuration;

  /**
   * Time since some wave processed at least one record
   */
  private Duration durationSinceLastTimeProcessed;

  /**
   * Last wave number, it's a counter starting from 1
   */
  private int wave;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy