Reloading a map is the same as preloading a map, except that the isPreload argument is set to false in the ClientLoader.load method.
// Get the StateManager
StateManager stateMgr = StateManagerFactory.getStateManager();
// Set ObjectGrid state to PRELOAD before calling ClientLoader.loader
stateMgr.setObjectGridState(AvailabilityState.PRELOAD, objectGrid);
ClientLoader c = ClientLoaderFactory.getClientLoader();
// Load the data
String loadSql = "select c from CUSTOMER c
where c.custId >= :startCustId and c.custId < :endCustId ";
Map<String, Long> params = new HashMap<String, Long>();
params.put("startCustId", 1000L);
params.put("endCustId", 2000L);
c.load(objectGrid, "CUSTOMER", "customerPU", null, null,
loadSql, params, false, null);
// Set ObjectGrid state back to ONLINE
stateMgr.setObjectGridState(AvailabilityState.ONLINE, objectGrid);