Interface ExpirationStrategy

All Known Implementing Classes:
ExpirationStrategy.Explicit, ExpirationStrategy.Inactivity

public sealed interface ExpirationStrategy permits ExpirationStrategy.Inactivity, ExpirationStrategy.Explicit

Classes implementing ExpirationStrategy define a strategy when a Runtime should be closed.

There are two strategies available:

Implementation Note:
The ExpirationStrategy.Inactivity strategy will check all active Runtimes at every incoming jda event. If a Runtime didn't handle any events in the last x minutes, it will be closed.