DDContext

com.phasmid.majabigwaduce.dd.DDContext
See theDDContext companion object
case class DDContext(config: Config, system: ActorSystem[Nothing], timeout: Timeout)

The context in which DataDefinition instances will be evaluated

Value parameters

config

the configuration

system

the actor system

timeout

the value of timeout

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def clean(): Unit

Cleans up resources by closing all registered closeables and resetting the collection of closeables.

Cleans up resources by closing all registered closeables and resetting the collection of closeables.

This method iterates over the registered closeables, invokes their close method, and then clears the list of closeables to ensure no further operations are performed on them.

Attributes

Returns

Unit

def ec: ExecutionContext

Provides access to the execution context used by this instance of DDContext.

Provides access to the execution context used by this instance of DDContext.

This method allows components requiring a scala.concurrent.ExecutionContext to obtain it, ensuring that asynchronous operations leverage the correct thread pool for execution.

Attributes

Returns

the ExecutionContext associated with this instance.

def register(cs: AutoCloseable*): Unit

Registers one or more AutoCloseable resources to be managed.

Registers one or more AutoCloseable resources to be managed.

The registered resources will be added to the closeables list for management and cleanup.

Value parameters

cs

varargs parameter representing the AutoCloseable resources to register

Attributes

Returns

Unit since the method performs a side effect of updating the closeables list

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product

Concrete fields

var closeables: List[AutoCloseable]