net.serenitybdd.screenplay.EventualConsequenceBuilder Maven / Gradle / Ivy
package net.serenitybdd.screenplay;
public class EventualConsequenceBuilder {
private final Consequence consequence;
private final long amount;
public EventualConsequenceBuilder(Consequence consequence, long amount) {
this.consequence = consequence;
this.amount = amount;
}
public EventualConsequence milliseconds() {
return new EventualConsequence(consequence, amount);
}
public EventualConsequence seconds() {
return new EventualConsequence(consequence, amount * 1000);
}
}