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

jp.gopay.sdk.utils.streams.WindowOptions Maven / Gradle / Ivy

There is a newer version: 0.11.17
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy