Search in sources :

Example 1 with SearchManagerImplementor

use of org.infinispan.query.spi.SearchManagerImplementor in project indy by Commonjava.

the class FoloCacheProducer method registerTransformer.

private void registerTransformer() {
    final CacheHandle<TrackedContentEntry, TrackedContentEntry> handler = cacheProducer.getCache(IN_PROGRESS_NAME, TrackedContentEntry.class, TrackedContentEntry.class);
    handler.execute(cache -> {
        SearchManagerImplementor searchManager = (SearchManagerImplementor) Search.getSearchManager(cache);
        searchManager.registerKeyTransformer(TrackedContentEntry.class, TrackedContentEntryTransformer.class);
        return null;
    });
}
Also used : SearchManagerImplementor(org.infinispan.query.spi.SearchManagerImplementor) TrackedContentEntry(org.commonjava.indy.folo.model.TrackedContentEntry)

Aggregations

TrackedContentEntry (org.commonjava.indy.folo.model.TrackedContentEntry)1 SearchManagerImplementor (org.infinispan.query.spi.SearchManagerImplementor)1