All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.fhir.persistence.jdbc.util.CodeSystemsCacheUpdater Maven / Gradle / Ivy

There is a newer version: 4.11.1
Show newest version
/*
 * (C) Copyright IBM Corp. 2018,2019
 *
 * SPDX-License-Identifier: Apache-2.0
 */

package com.ibm.fhir.persistence.jdbc.util;

import java.util.Map;
import java.util.logging.Logger;

/**
 * This cache update writes its Code Systems cache candidates to the CodeSystemsCache upon a transaction commit.
 */
public class CodeSystemsCacheUpdater extends CacheUpdater {
    private static final String CLASSNAME = CodeSystemsCacheUpdater.class.getName();
    private static final Logger log = Logger.getLogger(CLASSNAME);

    public CodeSystemsCacheUpdater(String tenantDatastoreCacheName, Map newCacheCandidates) {
        super(tenantDatastoreCacheName, newCacheCandidates);
    }

    
    @Override
    public void commitCacheCandidates() {
        final String METHODNAME = "commitCacheCandidates";
        log.entering(CLASSNAME, METHODNAME);
        
        CodeSystemsCache.putCodeSystemIds(this.getTenantDatastoreCacheName(), this.getCacheCandidates());
        
        log.exiting(CLASSNAME, METHODNAME);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy