![JAR search and dependency download from the Maven repository](/logo.png)
com.tangosol.coherence.jcache.localcache.LocalCacheConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coherence-jcache Show documentation
Show all versions of coherence-jcache Show documentation
Oracle Coherence Community Edition
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.coherence.jcache.localcache;
import com.tangosol.coherence.jcache.AbstractCoherenceBasedCompleteConfiguration;
import com.tangosol.coherence.jcache.CoherenceBasedCache;
import com.tangosol.coherence.jcache.CoherenceBasedCacheManager;
import javax.cache.configuration.CompleteConfiguration;
/**
* A {@link javax.cache.configuration.Configuration} for a
* {@link javax.cache.Cache} based on a Coherence <local-scheme>,
* or more specifically an in-process {@link com.tangosol.net.NamedCache}.
*
* @author bo 2013.10.23
* @since Coherence 12.1.3
*
* @param the type of keys
* @param the type of values
*/
public class LocalCacheConfiguration
extends AbstractCoherenceBasedCompleteConfiguration
{
// ----- constructors ---------------------------------------------------
/**
* Constructs a default {@link LocalCacheConfiguration}.
*/
public LocalCacheConfiguration()
{
super();
}
/**
* Constructs a {@link LocalCacheConfiguration} based on a
* {@link javax.cache.configuration.CompleteConfiguration}.
*
* @param configuration the {@link javax.cache.configuration.CompleteConfiguration}
*/
public LocalCacheConfiguration(CompleteConfiguration configuration)
{
super(configuration);
}
// ----- CoherenceCacheConfiguration interface --------------------------
@Override
public CoherenceBasedCache createCache(CoherenceBasedCacheManager manager, String sJCacheName)
throws IllegalArgumentException
{
return new LocalCache(manager, sJCacheName, this);
}
@Override
public void destroyCache(CoherenceBasedCacheManager manager, String name)
{
// no meaningful implementation. only can be destroyed in CoherenceBasedCacheManager.destroyCache
throw new UnsupportedOperationException("not implemented: should never be called");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy