Class OnlyOnceTrigger
java.lang.Object
org.springframework.integration.test.util.OnlyOnceTrigger
- All Implemented Interfaces:
- Trigger
The 
Trigger implementation which returns the current time
 to schedule the task immediately and does that only once.
 
 The reset() method can be called to reuse this trigger from scratch.
 
 The await() method can be used for synchronization barriers.
- Since:
- 2.2
- Author:
- Gunnar Hillert, Gary Russell, Artem Bilan
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidawait()booleaninthashCode()nextExecution(TriggerContext triggerContext) voidreset()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.scheduling.TriggernextExecutionTime
- 
Constructor Details- 
OnlyOnceTriggerpublic OnlyOnceTrigger()
 
- 
- 
Method Details- 
nextExecution- Specified by:
- nextExecutionin interface- Trigger
 
- 
hashCode
- 
equals
- 
resetpublic void reset()
- 
awaitpublic void await()
 
-