@Override public byte[][] appExecuteBatch(byte[][] command, MessageContext[] mcs) { byte[][] replies = new byte[command.length][]; for (int i = 0; i < command.length; i++) { replies[i] = executeGlobal(command[i], mcs[i]); } return replies; }
The function appExecuteBatch takes two arguments command and mcs and returns the replies.