File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
core/src/main/java/io/temporal/samples/packetdelivery Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 77import io .temporal .serviceclient .WorkflowServiceStubs ;
88import io .temporal .worker .Worker ;
99import io .temporal .worker .WorkerFactory ;
10+ import java .util .Collections ;
1011import java .util .List ;
1112
1213public class Starter {
@@ -36,10 +37,13 @@ public static void main(String[] args) {
3637 // more
3738 while (true ) {
3839 sleep (3 );
40+ // for "fun", reverse the list we get from delivery confirmation list
3941 List <Packet > packets = workflow .deliveryConfirmationPackets ();
4042 if (packets .isEmpty ()) {
4143 break ;
4244 }
45+ // for "fun", reverse the list we get from delivery confirmation list
46+ Collections .reverse (packets );
4347
4448 for (Packet p : packets ) {
4549 try {
You can’t perform that action at this time.
0 commit comments