import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.opendaylight.controller.cluster.DataPersistenceProvider;
-import org.opendaylight.controller.cluster.io.FileBackedOutputStream;
+import org.opendaylight.controller.cluster.io.FileBackedOutputStreamFactory;
import org.opendaylight.controller.cluster.raft.base.messages.ApplyState;
import org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior;
import org.opendaylight.controller.cluster.raft.persisted.ServerConfigurationPayload;
Consumer<ApplyState> getApplyStateConsumer();
/**
- * Creates a FileBackedOutputStream with a common configuration.
+ * Returns the {@link FileBackedOutputStreamFactory} instance with a common configuration.
*
- * @return a FileBackedOutputStream instance
+ * @return the {@link FileBackedOutputStreamFactory};
*/
@Nonnull
- FileBackedOutputStream newFileBackedOutputStream();
+ FileBackedOutputStreamFactory getFileBackedOutputStreamFactory();
/**
* Returns the RaftActorLeadershipTransferCohort if leadership transfer is in progress.