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

io.unmock.core.persistence.Persistence Maven / Gradle / Ivy

The newest version!
package io.unmock.core.persistence;

import io.unmock.core.PersistableData;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Map;

public interface Persistence {
    void saveHeaders(@NotNull String hash, @NotNull Map headers);
    void saveBody(@NotNull String hash, @NotNull String body);
    void saveAuth(@NotNull String auth);
    void saveToken(@NotNull String token);
    void saveMetadata(@NotNull String hash, @NotNull PersistableData data);
    @Nullable Map loadHeaders(@NotNull String hash);
    @Nullable String loadBody(@NotNull String hash);
    @Nullable String loadAuth();
    @Nullable String loadToken();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy