Class CompoundTrigger
java.lang.Object
org.springframework.integration.util.CompoundTrigger
- All Implemented Interfaces:
- Trigger
A 
Trigger that delegates the Trigger.nextExecutionTime(TriggerContext)
 to one of two Triggers. If the override trigger is
 null, the primary trigger is invoked; otherwise the override trigger is
 invoked.- Since:
- 4.3
- Author:
- Gary Russell, Artem Bilan
- 
Constructor SummaryConstructorsConstructorDescriptionCompoundTrigger(Trigger primary) Construct a compound trigger with the supplied primary trigger.
- 
Method SummaryModifier and TypeMethodDescriptionnextExecution(TriggerContext triggerContext) voidsetOverride(Trigger override) Set the override trigger; set to null to revert to using the primary trigger.final voidsetPrimary(Trigger primary) Set the primary trigger.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.scheduling.TriggernextExecutionTime
- 
Constructor Details- 
CompoundTriggerConstruct a compound trigger with the supplied primary trigger.- Parameters:
- primary- the primary trigger.
 
 
- 
- 
Method Details- 
setPrimarySet the primary trigger.- Parameters:
- primary- the trigger.
 
- 
setOverrideSet the override trigger; set to null to revert to using the primary trigger.- Parameters:
- override- the override trigger, or null.
 
- 
nextExecution- Specified by:
- nextExecutionin interface- Trigger
 
 
-