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

io.geewit.snowflake.buffer.BufferedUidProvider Maven / Gradle / Ivy

package io.geewit.snowflake.buffer;

import java.util.List;

/**
 * Buffered UID provider(Lambda supported), which provides UID in the same one second
 *
 * @author geewit
 */
@FunctionalInterface
public interface BufferedUidProvider {

    /**
     * Provides UID in one second
     *
     * @param momentInSecond
     * @return UID in one second
     */
    List provide(long momentInSecond);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy