Class CompositeCompactionTrigger
java.lang.Object
org.springframework.ai.session.compaction.CompositeCompactionTrigger
- All Implemented Interfaces:
CompactionTrigger
Fires when any of its triggers fires.
- Since:
- 2.1.0
- Author:
- Christian Tzolov
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompositeCompactionTriggeranyOf(CompactionTrigger... triggers) A trigger that fires when any of the given triggers fires.booleanshouldCompact(CompactionRequest request) Whether the view should be compacted now.
-
Method Details
-
anyOf
A trigger that fires when any of the given triggers fires. -
shouldCompact
Description copied from interface:CompactionTriggerWhether the view should be compacted now.- Specified by:
shouldCompactin interfaceCompactionTrigger
-