private static void recursiveSet ( CopycatClient client ) { client . submit ( new SetCommand ( UUID . randomUUID ( ) . toString ( ) ) ) . whenComplete ( ( result , error ) -> { client . context ( ) . schedule ( Duration . ofSeconds ( 5 ) , ( ) -> recursiveSet ( client ) ) ; } ) ; }
Recursively sets state machine values .