Using Inheritance
Use of inheritance can simplify event configuration.
A child event inherits:
- All the parent event’s properties.
- The parent event’s expiry action (if set). However, an expiry action set in the child event overrides the parent event expiry action.
Note: A parent event cannot have a payload. Also, all child events of an event with TTL=0 must also use TTL setting TTL=0 .
Events that are related to each other directly or indirectly by inheritance cannot have distinct properties that share a common name. Therefore the following restrictions apply:
- If two events are related by inheritance, you cannot create a new property in one with a name that is already used in the other.
- If two unrelated events have properties that share a name, you cannot create an inheritance relationship between the two events.