Example usage for org.apache.commons.jcs.engine.control CompositeCacheManager shutDown

List of usage examples for org.apache.commons.jcs.engine.control CompositeCacheManager shutDown

Introduction

In this page you can find the example usage for org.apache.commons.jcs.engine.control CompositeCacheManager shutDown.

Prototype

public void shutDown() 

Source Link

Document

Calls freeCache on all regions

Usage

From source file:org.openstreetmap.josm.data.cache.JCSCacheManager.java

/**
 * Close all files to ensure, that all indexes and data are properly written
 *///from  w ww .  ja  v  a2s . c om
public static void shutdown() {
    // use volatile semantics to get consistent object
    CompositeCacheManager localCacheManager = cacheManager;
    if (localCacheManager != null) {
        localCacheManager.shutDown();
    }
}