com.opentext.ia.sdk.sip.SipAssemblyTimer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infoarchive-sdk-core Show documentation
Show all versions of infoarchive-sdk-core Show documentation
A library that makes it quick and easy to create SIPs in InfoArchive
/*
* 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