public static void validateResults(Map<Integer, Object> results) {
        for (Object result : results.values()) {
            if (result != null && result instanceof CacheClearResponse) {
                Object response = ((CacheClearResponse) result).getResponse();
                if (response instanceof Throwable) {
                    ExceptionUtil.sneakyThrow((Throwable) response);
                }
            }
        }
    }
public static void validateResults ( Map < Integer , Object > results ) { for ( Object result : results . values ( ) ) { if ( result != null && result instanceof CacheClearResponse ) { Object response = ( ( CacheClearResponse ) result ) . getResponse ( ) ; if ( response instanceof Throwable ) { ExceptionUtil . sneakyThrow ( ( Throwable ) response ) ; } } } }
Cache clear response validator, loop on results to validate that no exception exists on the result map.
Throws the first exception in the map.

@param results map of {@link CacheClearResponse}.