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

com.maxifier.mxcache.impl.wrapping.AbstractObjectObjectCacheWrapper Maven / Gradle / Ivy

Go to download

Constains all classes necessary for launching a MxCache-instrumentated application

There is a newer version: 2.6.9
Show newest version
/*
 * Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
 */
package com.maxifier.mxcache.impl.wrapping;

import com.maxifier.mxcache.caches.Cache;
import com.maxifier.mxcache.caches.ObjectObjectCache;
import com.maxifier.mxcache.impl.resource.DependencyNode;
import com.maxifier.mxcache.interfaces.Statistics;
import com.maxifier.mxcache.provider.CacheDescriptor;
import javax.annotation.Nullable;

import java.util.concurrent.locks.Lock;

/**
* AbstractObjectObjectCacheWrapper
*
* @author Aleksey Dergunov ([email protected]) (06.09.13 16:31)
*/
public abstract class AbstractObjectObjectCacheWrapper implements Cache {
    protected final ObjectObjectCache delegate;

    AbstractObjectObjectCacheWrapper(ObjectObjectCache delegate) {
        this.delegate = delegate;
    }

    @Override
    public int getSize() {
        return delegate.getSize();
    }

    @Override
    public CacheDescriptor getDescriptor() {
        return delegate.getDescriptor();
    }

    @Override
    public void setDependencyNode(DependencyNode node) {
        delegate.setDependencyNode(node);
    }

    @Nullable
    @Override
    public Lock getLock() {
        return delegate.getLock();
    }

    @Override
    public void clear() {
        delegate.clear();
    }

    @Override
    public DependencyNode getDependencyNode() {
        return delegate.getDependencyNode();
    }

    @Nullable
    @Override
    public Statistics getStatistics() {
        return delegate.getStatistics();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy