Class: GarbageCollector

olympe.dc.db. GarbageCollector

The garbage collector is a service that listens to the usage of instances in the database. It removes instances from the memory when they are not needed anymore.


new GarbageCollector(database, mode, context)

Parameters:
Name Type Description
database olympe.dc.db.Database
mode olympe.dc.db.GarbageCollector.MODE
context olympe.df.ExecutionContext

Members


<static> MODE :number

Modes of garbage collector

Type:
  • number
Properties:
Name Type Default Description
DISABLE number 0
SYNC number 1
ASYNC number 2

Methods


<package> run()

Run the garbage collector in a asynchronous process to avoid blocking the rest of the application.