jp.gopay.sdk.utils.streams.WindowOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gopay-java-sdk Show documentation
Show all versions of gopay-java-sdk Show documentation
Official Gyro-n Payments Java SDK
package jp.gopay.sdk.utils.streams;
import io.reactivex.annotations.NonNull;
import javax.annotation.Nonnull;
import java.util.concurrent.TimeUnit;
public class WindowOptions {
private final WindowSize windowSize;
private final long length;
private final TimeUnit timeUnit;
public WindowOptions(@Nonnull WindowSize windowSize,
long length,
@NonNull TimeUnit timeUnit) {
this.windowSize = windowSize;
this.length = length;
this.timeUnit = timeUnit;
}
public long getLength() {
return length;
}
public TimeUnit getTimeUnit() {
return timeUnit;
}
public long getWindowSize() {
return windowSize.size;
}
}