icegem-core/src/main/java/com/googlecode/icegem/utils/CacheUtils.java
public static int getRegionSize(Region<?, ?> region) {
		Function function = new RegionSizeFunction();

		FunctionService.registerFunction(function);

		ResultCollector<?, ?> rc = FunctionService.onRegion(region)
				.withCollector(new RegionSizeResultCollector())
				.execute(function);

		return (Integer) rc.getResult();
	}
public static int getRegionSize(Region<?, ?> region) {
		Function function = new RegionSizeFunction();

		FunctionService.registerFunction(function);

		ResultCollector<?, ?> rc = FunctionService.onRegion(region)
				.withCollector(new RegionSizeResultCollector())
				.execute(function);

		return (Integer) rc.getResult();
	}
public static int getRegionSize ( Region < ? , ? > region ) { Function function = new RegionSizeFunction ( ) ; FunctionService . registerFunction ( function ) ; ResultCollector < ? , ? > rc = FunctionService . onRegion ( region ) . withCollector ( new RegionSizeResultCollector ( ) ) . execute ( function ) ; return ( Integer ) rc . getResult ( ) ; }
Returns approximate number of entries in the region. As the function
counts number of entries on different nodes in parallel, per node values
may be captured on different moments. So the value may never be valid.

@param region
the region.
@returns approximate number of objects in the given region.
Returns approximate number of entries in the region . As the function counts number of entries on different nodes in parallel per node values may be captured on different moments . So the value may never be valid .