Class JournalFileStorage
- Namespace
- OptunaSharp.Storages.Journal
- Assembly
- OptunaSharp.dll
Deprecated alias of JournalFileBackend.
[Obsolete("Deprecated in v4.0.0. This feature will be removed in v6.0.0. Use JournalFileBackend instead.")]
public class JournalFileStorage : JournalFileBackend
- Inheritance
-
JournalFileStorage
- Inherited Members
Constructors
JournalFileStorage(string, BaseJournalFileLock?)
Opens or creates a UTF-8 JSON-lines journal using the supplied interprocess lock.
public JournalFileStorage(string filePath, BaseJournalFileLock? lockObj = null)
Parameters
filePathstringJournal file path; its parent directory must already exist.
lockObjBaseJournalFileLockLock implementation; null selects the backend's default lock, the symbolic-link protocol with a switch to the open-file protocol where symbolic links cannot be created.
Exceptions
- IOException
The journal file cannot be opened or created.
- UnauthorizedAccessException
The process lacks access to the journal path.