54555657585960616263
ResourceTransaction transaction = resourceFactory.getTransaction(); if (!transaction.isStarted()) { return Results.fail("Resource Transaction is not started"); } transaction.commit(); return Results.success(); } }
55565758596061626364
ResourceTransaction transaction = resourceFactory.getTransaction(); if (!transaction.isStarted()) { return Results.fail("Resource Transaction is not started"); } transaction.commit(); return Results.success("Resource Transaction was committed"); } }
7273747576777879808182
} else { if (transaction.isStarted()) { transaction.commit(); } List<ResourceEvent> events = new ArrayList<>(aggregator.getResourceEvents()); aggregator.clear(); Collections.sort(events, new Comparator<ResourceEvent>()