org.rx.io.KeyIndexer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxlib Show documentation
Show all versions of rxlib Show documentation
A set of utilities for Java
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();
}