Added a method to reset the tenant config cache.

This commit is contained in:
harshanl 2015-11-30 16:55:45 +05:30
parent b85c84353f
commit b2d344bad7
2 changed files with 8 additions and 0 deletions

View File

@ -57,4 +57,8 @@ public class GCMService {
log.error("Exception occurred while sending the GCM notification : " + result.getErrorMsg()); log.error("Exception occurred while sending the GCM notification : " + result.getErrorMsg());
} }
} }
public void resetTenantConfigCache() {
GCMUtil.resetTenantConfigCache();
}
} }

View File

@ -177,6 +177,10 @@ public class GCMUtil {
return null; return null;
} }
public static void resetTenantConfigCache() {
tenantConfigurationCache.remove(getTenantId());
}
private static void addTenantConfigurationToCache(TenantConfiguration tenantConfiguration) { private static void addTenantConfigurationToCache(TenantConfiguration tenantConfiguration) {
tenantConfigurationCache.put(getTenantId(), tenantConfiguration); tenantConfigurationCache.put(getTenantId(), tenantConfiguration);
} }