There can be situations where your ESB logic need thread sleeps to delay the executions. In WSO2 ESB, this can be easily done using the script mediator.
Following is the synapse code of the script mediator to add 1000ms thread sleep.
Feel free to use and share !!
Following is the synapse code of the script mediator to add 1000ms thread sleep.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="js">java.lang.Thread.sleep(1000);</script> |
Feel free to use and share !!
No comments:
Post a Comment