Package dev.inmo.micro_utils.fsm.common.managers

Types

DefaultStatesManager
Link copied to clipboard
class DefaultStatesManager(repo: DefaultStatesManagerRepo, onContextsConflictResolver: suspend (old: State, new: State, currentNew: State) -> Boolean) : StatesManager
class DefaultStatesManager(repo: DefaultStatesManagerRepo, onContextsConflictResolver: suspend (old: State, new: State, currentNew: State) -> Boolean) : StatesManager
class DefaultStatesManager(repo: DefaultStatesManagerRepo, onContextsConflictResolver: suspend (old: State, new: State, currentNew: State) -> Boolean) : StatesManager
DefaultStatesManagerRepo
Link copied to clipboard
interface DefaultStatesManagerRepo

Implement this repo if you want to use some custom repo for DefaultStatesManager

common
interface DefaultStatesManagerRepo

Implement this repo if you want to use some custom repo for DefaultStatesManager

interface DefaultStatesManagerRepo

Implement this repo if you want to use some custom repo for DefaultStatesManager

InMemoryDefaultStatesManagerRepo
Link copied to clipboard

Simple DefaultStatesManagerRepo for DefaultStatesManager which will store data in map and use primitive functionality

common

Simple DefaultStatesManagerRepo for DefaultStatesManager which will store data in map and use primitive functionality

Simple DefaultStatesManagerRepo for DefaultStatesManager which will store data in map and use primitive functionality

InMemoryStatesManager
Link copied to clipboard
class InMemoryStatesManager(onContextsConflictResolver: suspend (old: State, new: State, currentNew: State) -> Boolean) : StatesManager
class InMemoryStatesManager(onContextsConflictResolver: suspend (old: State, new: State, currentNew: State) -> Boolean) : StatesManager
class InMemoryStatesManager(onContextsConflictResolver: suspend (old: State, new: State, currentNew: State) -> Boolean) : StatesManager