com.wideplay.warp.persist.internal
Class Lifecycles
java.lang.Object
com.wideplay.warp.persist.internal.Lifecycles
public class Lifecycles
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
failEarlyAndLeaveNoOneBehind
public static <E extends Exception> void failEarlyAndLeaveNoOneBehind(List<Lifecycle> lifecycles,
ExceptionalRunnable<E> exceptionalRunnable)
throws E extends Exception
- Throws:
E extends Exception
failEarly
public static void failEarly(List<Lifecycle> lifecycles)
leaveNoOneBehind
public static void leaveNoOneBehind(List<Lifecycle> lifecycles)
- Tries to end work for as much work as possible, in order.
Accumulates exceptions and rethrows them in a RuntimeException.