@Override public void initialize() { // Register Functions registerFunctions(); // Create or retrieve the region createOrRetrieveRegion(); // If local cache is enabled, create the local region fronting the session region // and set it as the operating region; otherwise, use the session region directly // as the operating region. this.operatingRegion = getSessionManager().getEnableLocalCache() ? createOrRetrieveLocalRegion() : this.sessionRegion; // Create or retrieve the statistics createStatistics(); }
private Region<String, HttpSession> createLocalSessionRegion() { ClientRegionFactory<String, HttpSession> factory = null; if (getSessionManager().getEnableLocalCache()) { if (!getSessionManager().getEnableLocalCache()) { region.registerInterest("ALL_KEYS", InterestResultPolicy.KEYS);
@Override public void initialize() { // Register Functions registerFunctions(); // Create or retrieve the region createOrRetrieveRegion(); // If local cache is enabled, create the local region fronting the session region // and set it as the operating region; otherwise, use the session region directly // as the operating region. this.operatingRegion = getSessionManager().getEnableLocalCache() ? createOrRetrieveLocalRegion() : this.sessionRegion; // Create or retrieve the statistics createStatistics(); }
private Region<String, HttpSession> createLocalSessionRegion() { ClientRegionFactory<String, HttpSession> factory = null; if (getSessionManager().getEnableLocalCache()) { if (!getSessionManager().getEnableLocalCache()) { region.registerInterest("ALL_KEYS", InterestResultPolicy.KEYS);