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 Collection[Doc, Model]
trait LightDB

Members list

Value members

Abstract methods

protected def initialize(): Unit

Define initialization functionality here, but never call directly.

Define initialization functionality here, but never call directly.

Attributes

Concrete methods

final def init(): Boolean

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

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

Attributes

def isInitialized: Boolean