Добавляет модуль :sync — generic cursor-journal событий.
EventStore/MutableEventStore (get с EventSeqResult.expired, push, dropAllBefore, clear, min/max курсоров) и ksqlite-реализация KSqliteMutableEventStore: кэш граничных курсоров, пагинация чтения, требование возрастающего курсора. Тесты на in-memory SQLite.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package pw.binom
|
||||
|
||||
import pw.binom.agentik.cursor.Cursor
|
||||
|
||||
interface StateStore<STATE> {
|
||||
|
||||
|
||||
/**
|
||||
* Возвращает состояние на момент [cursor]
|
||||
*/
|
||||
fun getState(cursor: Cursor): STATE
|
||||
}
|
||||
Reference in New Issue
Block a user