public static void clearRegion(Region<?, ?> region, boolean wanCompatible,
			boolean cleanLocal) {
		ClearRegionFunction cleaner = new ClearRegionFunction();

		FunctionService.registerFunction(cleaner);

		FunctionService.onRegion(region).withArgs(wanCompatible)
				.execute(cleaner).getResult();

		if (cleanLocal && isGemFireClient()) {
			region.localClear();
		}
	}
public static void clearRegion(Region<?, ?> region, boolean wanCompatible,
			boolean cleanLocal) {
		ClearRegionFunction cleaner = new ClearRegionFunction();

		FunctionService.registerFunction(cleaner);

		FunctionService.onRegion(region).withArgs(wanCompatible)
				.execute(cleaner).getResult();

		if (cleanLocal && isGemFireClient()) {
			region.localClear();
		}
	}
public static void clearRegion ( Region < ? , ? > region , boolean wanCompatible , boolean cleanLocal ) { ClearRegionFunction cleaner = new ClearRegionFunction ( ) ; FunctionService . registerFunction ( cleaner ) ; FunctionService . onRegion ( region ) . withArgs ( wanCompatible ) . execute ( cleaner ) . getResult ( ) ; if ( cleanLocal && isGemFireClient ( ) ) { region . localClear ( ) ; } }
Clears all types of regions. This method can clean both types of regions
(REPLICATED, PARTITIONED). It can be used both on client and server side.

@param region
the region.
@param wanCompatible
if true, WAN replication compatible method will be used which
is considerably slower on REPLICATE regions.
@param cleanLocal
if true, local cached replicate shall be cleared.
Clears all types of regions . This method can clean both types of regions ( REPLICATED PARTITIONED ) . It can be used both on client and server side .