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

com.opentext.ia.sdk.sip.SipAssemblyTimer Maven / Gradle / Ivy

There is a newer version: 12.8.4
Show newest version
/*
 * Copyright (c) 2016-2017 by OpenText Corporation. All Rights Reserved.
 */
package com.opentext.ia.sdk.sip;

import java.util.function.Consumer;

import com.opentext.ia.sdk.support.datetime.Clock;
import com.opentext.ia.sdk.support.datetime.DefaultClock;


/**
 * Timer information for use in repeatedly assembling SIPs.
 */
public class SipAssemblyTimer {

  private final long millis;
  private final Clock clock;
  private final Consumer callback;

  public SipAssemblyTimer(long millis, Consumer callback) {
    this(millis, new DefaultClock(), callback);
  }

  public SipAssemblyTimer(long millis, Clock clock, Consumer callback) {
    this.millis = millis;
    this.clock = clock;
    this.callback = callback;
  }

  public long getMillis() {
    return millis;
  }

  public Clock getClock() {
    return clock;
  }

  public Consumer getCallback() {
    return callback;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy