@Override public void close() { sync(); }
@Override public void close() { sync(); }
@Override public void close() { sync(); }
@Override public void close() { sync(); }
/** Used for testing */ public static boolean anyUnhandledExceptions() { synchronized(allInstances) { final int count = allInstances.size(); // Make sure all outstanding threads are done so we see // any exceptions they may produce: for(int i=0;i<count;i++) ((ConcurrentMergeScheduler) allInstances.get(i)).sync(); boolean v = anyExceptions; anyExceptions = false; return v; } }
/** Used for testing */ public static boolean anyUnhandledExceptions() { synchronized(allInstances) { final int count = allInstances.size(); // Make sure all outstanding threads are done so we see // any exceptions they may produce: for(int i=0;i<count;i++) ((ConcurrentMergeScheduler) allInstances.get(i)).sync(); boolean v = anyExceptions; anyExceptions = false; return v; } }