Module me.ahoo.cosid.core
Package me.ahoo.cosid.store
package me.ahoo.cosid.store
The store SPI (06-stores.md §1):
StoreProvider opens a
Store, which gives the range and slot lease primitives; the option and key rules every
backend shares; StoreTimeoutException.-
ClassDescriptionAn open store: its range and slot lease primitives (06-stores.md §1).What a
StoreProvideropens a store with (06-stores.md §1).Builds aStoreConfig;StoreConfig.Builder.build()checks the fields.The keys every backend stores alike (R1-spi-02, 06-stores.md §1): namespaces, the names of generators and machines, and the range and owner keys made from them.The options of a store matched to the keys its provider declares (R1-spi-01, R1-spring-01): case,-and_do not count, so an environment variable (..._OPTIONS_INITSCHEMA) and kebab-case (init-schema) reachinitSchema; any other key is a problem.Opens stores of one type (06-stores.md §1); found throughServiceLoaderor given to the runtime (as a Spring bean, say), both along the same path.A store operation did not complete withinStoreConfig.timeout(): the backend's native timeout fired (06-stores.md §1).