/** * Single threaded execution * * @param context Context * @throws Exception */ private void singleThreaded(Context context) throws Exception { write(context); }
multiThreaded(context); } else { singleThreaded(context);
@Override public void run() { try { write(context); // CHECKSTYLE: stop IllegalCatch } catch (Exception e) { // CHECKSTYLE: resume IllegalCatch LOG.error("Thread {} failed to write", Thread.currentThread().getId(), e); } } });