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

com.maxifier.mxcache.transform.SmartSoftReference 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.transform;

import com.maxifier.mxcache.util.HashSoftReference;

/**
 * @author Alexander Kochurov ([email protected])
*/
class SmartSoftReference extends HashSoftReference implements SmartReference {
    private Runnable callback;

    @SuppressWarnings({ "unchecked" })
    public SmartSoftReference(T referent) {
        super(referent, SmartReferenceManager.getReferenceQueue());
    }

    @Override
    public Runnable getCallback() {
        return callback;
    }

    @Override
    public void setCallback(Runnable callback) {
        this.callback = callback;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy