Example usage for com.liferay.portal.kernel.cache.index PortalCacheIndexer PortalCacheIndexer

List of usage examples for com.liferay.portal.kernel.cache.index PortalCacheIndexer PortalCacheIndexer

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.cache.index PortalCacheIndexer PortalCacheIndexer.

Prototype

public PortalCacheIndexer(IndexEncoder<I, K> indexEncoder, PortalCache<K, V> portalCache) 

Source Link

Usage

From source file:com.liferay.journal.util.impl.JournalContentImpl.java

License:Open Source License

@Reference(unbind = "-")
protected void setMultiVMPool(MultiVMPool multiVMPool) {
    _portalCache = (PortalCache<JournalContentKey, JournalArticleDisplay>) multiVMPool
            .getPortalCache(CACHE_NAME);

    _portalCacheIndexer = new PortalCacheIndexer<>(new JournalContentKeyIndexEncoder(), _portalCache);
}