private static void checkLocalUpdatePolicy(String mapName, LocalUpdatePolicy localUpdatePolicy) {
        if (localUpdatePolicy != INVALIDATE) {
            throw new IllegalArgumentException(format("Wrong `local-update-policy` option is selected for `%s` map Near Cache."
                    + " Only `%s` option is supported but found `%s`", mapName, INVALIDATE, localUpdatePolicy));
        }
    }
private static void checkLocalUpdatePolicy ( String mapName , LocalUpdatePolicy localUpdatePolicy ) { if ( localUpdatePolicy != INVALIDATE ) { throw new IllegalArgumentException ( format ( "Wrong `local-update-policy` option is selected for `%s` map Near Cache." + " Only `%s` option is supported but found `%s`" , mapName , INVALIDATE , localUpdatePolicy ) ) ; } }
Checks IMap's supported Near Cache local update policy configuration.

@param mapName           name of the map that Near Cache will be created for
@param localUpdatePolicy local update policy