com.wideplay.warp.persist.internal
Class Lifecycles

java.lang.Object
  extended by com.wideplay.warp.persist.internal.Lifecycles

public class Lifecycles
extends Object


Method Summary
static void failEarly(List<Lifecycle> lifecycles)
           
static
<E extends Exception>
void
failEarlyAndLeaveNoOneBehind(List<Lifecycle> lifecycles, ExceptionalRunnable<E> exceptionalRunnable)
           
static void leaveNoOneBehind(List<Lifecycle> lifecycles)
          Tries to end work for as much work as possible, in order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.