/** * Executes batch. */ private void execute() { for (Client client : clientMap.values()) { if (client != null && client instanceof Batcher) { // if no batch operation performed{may be running in // transaction?} if (((Batcher) client).getBatchSize() == 0 || ((Batcher) client).executeBatch() > 0) { flushJoinTableData(); } } } }