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

io.vlingo.xoom.symbio.store.journal.jdbc.JDBCJournalWriter Maven / Gradle / Ivy

There is a newer version: 1.11.1
Show newest version
// Copyright © 2012-2021 VLINGO LABS. All rights reserved.
//
// This Source Code Form is subject to the terms of the
// Mozilla Public License, v. 2.0. If a copy of the MPL
// was not distributed with this file, You can obtain
// one at https://mozilla.org/MPL/2.0/.

package io.vlingo.xoom.symbio.store.journal.jdbc;

import io.vlingo.xoom.actors.Logger;
import io.vlingo.xoom.common.Outcome;
import io.vlingo.xoom.symbio.Entry;
import io.vlingo.xoom.symbio.State.TextState;
import io.vlingo.xoom.symbio.store.Result;
import io.vlingo.xoom.symbio.store.StorageException;

import java.util.List;
import java.util.Optional;
import java.util.function.Consumer;

public interface JDBCJournalWriter {
	void appendEntry(final String streamName, final int streamVersion, Entry entry, Optional snapshotState,
						  Consumer> postAppendAction);

	void appendEntries(final String streamName, final int fromStreamVersion, final List> entries, Optional snapshotState,
						  Consumer> postAppendAction);

	void flush();

	void stop();

	void setLogger(Logger logger);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy