Skip to content
logoBack to home screen

Garbage Collection

You can use this metadata to influence the behavior of the garbage collector.

Metadata Property NameType Signature
GarbageCollectioncom.braintribe.model.meta.data.cleanupGarbageCollection.java

General

Using this metadata, you can configure how the garbage collector behaves for the instances of entity types this metadata is assigned to. You can attach the GarbageCollection metadata on the entity level.

For information about using the garbage collector, see Using the Garbage Collector

There is little configuration for this metadata - the most important is the kind property:

ValueDescription
anchorConsidered root entities, it marks the point where garbage collector starts its reachability walks. Anchor entities will never be collected by the garbage collection.
holdDefines entities that should never be collected by the garbage collector.
collectRemoves all marked entities, unless they are reachable (directly or indirectly) from one of the root entities.