Class Persistence

java.lang.Object
atessera.sensei.util.Persistence
All Implemented Interfaces:
AutoCloseable

public final class Persistence extends Object implements AutoCloseable
  • Constructor Details

    • Persistence

      public Persistence(String path)
    • Persistence

      public Persistence(Path path)
  • Method Details

    • put

      public void put(String mail, Student student)
    • getStudents

      public List<Student> getStudents()
    • chatMemoryStore

      public dev.langchain4j.store.memory.chat.ChatMemoryStore chatMemoryStore()
    • commit

      public void commit()
      Commits all pending changes.
    • close

      public void close()
      Closes the MVStore database.
      Specified by:
      close in interface AutoCloseable