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

org.rx.io.KeyIndexer Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package org.rx.io;

import lombok.EqualsAndHashCode;
import lombok.RequiredArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

public interface KeyIndexer extends AutoCloseable {
    @RequiredArgsConstructor
    @EqualsAndHashCode
    @ToString
    class KeyEntity implements Serializable {
        private static final long serialVersionUID = -725164142563152444L;
        final TK key;
        long logPosition;
    }

    KeyEntity newKey(TK key);

    void save(KeyEntity key);

    KeyEntity find(TK k);

    void clear();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy