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

com.exasol.bucketfs.monitor.TimestampRetriever Maven / Gradle / Ivy

Go to download

This module provides abstraction for generation, startup, shutdown and use of an Exasol database running on Docker.

The newest version!
package com.exasol.bucketfs.monitor;

import java.time.Instant;

import com.exasol.bucketfs.monitor.BucketFsMonitor.State;
import com.exasol.bucketfs.monitor.BucketFsMonitor.StateRetriever;

/**
 * Retrieves the initial {@link TimestampState}, i.e. the current instant in time. This allows rejecting events that
 * happened at an earlier point in time.
 */
public class TimestampRetriever implements StateRetriever {
    @Override
    public State getState() {
        return TimestampState.lowResolution(Instant.now());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy