Initializable

lightdb.util.Initializable

Provides simple initialization support to avoid initialization being invoked more than once. FlatMap on init to safely guarantee initialization was successful.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Store[Doc, Model]
class HashMapStore[Doc, Model]
class Collection[Doc, Model]
class SplitCollection[Doc, Model, Storage, Searching]
trait PrefixScanningStore[Doc, Model]
trait LightDB
Show all

Members list

Value members

Abstract methods

protected def initialize(): Task[Unit]

Define initialization functionality here, but never call directly.

Define initialization functionality here, but never call directly.

Attributes

Concrete methods

def isInitialized: Boolean

Concrete fields

lazy val init: Task[Unit]

Calls initialize() exactly one time. Safe to call multiple times.

Calls initialize() exactly one time. Safe to call multiple times.

Attributes