/** * Process the given messages. A Unit of Work must be created for this processing. * <p> * This implementation creates a Batching unit of work for the given batch of {@code eventMessages}. * * @param eventMessages The messages to process */ protected void process(List<? extends EventMessage<?>> eventMessages) { try { processInUnitOfWork(eventMessages, new BatchingUnitOfWork<>(eventMessages), Segment.ROOT_SEGMENT); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new EventProcessingException("Exception occurred while processing events", e); } }
/** * Process the given messages. A Unit of Work must be created for this processing. * <p> * This implementation creates a Batching unit of work for the given batch of {@code eventMessages}. * * @param eventMessages The messages to process */ protected void process(List<? extends EventMessage<?>> eventMessages) { try { processInUnitOfWork(eventMessages, new BatchingUnitOfWork<>(eventMessages), Segment.ROOT_SEGMENT); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new EventProcessingException("Exception occurred while processing events", e); } }
/** * Process the given messages. A Unit of Work must be created for this processing. * <p> * This implementation creates a Batching unit of work for the given batch of {@code eventMessages}. * * @param eventMessages The messages to process */ protected void process(List<? extends EventMessage<?>> eventMessages) { try { processInUnitOfWork(eventMessages, new BatchingUnitOfWork<>(eventMessages), Segment.ROOT_SEGMENT); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new EventProcessingException("Exception occurred while processing events", e); } }