void increment ( ) { long id = rand . nextInt ( config . tuples ) ; long toIncrement = rand . nextInt ( 5 ) ; // 0 - 4 try { client . callProcedure ( new CMCallback ( ) , "Increment" , toIncrement , id ) ; } catch ( IOException e ) { // This is not ideal error handling for production, but should be // harmless in a benchmark like this try { Thread . sleep ( 50 ) ; } catch ( Exception e2 ) { } } }
Run the Increment procedure on the server asynchronously .