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

net.sf.ehcache.EnterpriseFeaturesManager Maven / Gradle / Ivy

Go to download

EHCache CacheStore Implementation to integrate DirectMemory Cache as OffHeapStore.

The newest version!
package net.sf.ehcache;

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

import net.sf.ehcache.pool.Pool;
import net.sf.ehcache.pool.PoolableStore;
import net.sf.ehcache.store.Store;
import net.sf.ehcache.store.offheap.OffHeapStore;
import net.sf.ehcache.transaction.SoftLockFactory;
import net.sf.ehcache.transaction.SoftLockManager;
import net.sf.ehcache.transaction.TransactionIDFactory;
import net.sf.ehcache.util.UpdateChecker;
import net.sf.ehcache.writer.writebehind.WriteBehind;

/**
 * Class name is hardcoded in ehcache so we need this one!!
 * @author Olivier Lamy
 * @since 0.2
 */
public class EnterpriseFeaturesManager
    implements FeaturesManager
{

    private  CacheManager cacheManager;

    public EnterpriseFeaturesManager( CacheManager cacheManager )
    {
        this.cacheManager = cacheManager;
    }

    @Override
    public WriteBehind createWriteBehind( Cache cache )
    {
        return null;
    }

    @Override
    public Store createStore( Cache cache, Pool onHeapPool, Pool onDiskPool )
    {
        return OffHeapStore.createOffHeapStore( cache );
    }

    @Override
    public TransactionIDFactory createTransactionIDFactory()
    {
        return null;
    }

    @Override
    public SoftLockManager createSoftLockManager( Ehcache cache, SoftLockFactory lockFactory )
    {
        return null;
    }

    @Override
    public void startup()
    {

    }

    @Override
    public void dispose()
    {

    }

    @Override
    public UpdateChecker createUpdateChecker()
    {
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy