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

com.maxifier.mxcache.caches.CleaningNode Maven / Gradle / Ivy

/*
 * Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
 */
package com.maxifier.mxcache.caches;

import com.maxifier.mxcache.impl.resource.DependencyNode;

/**
 * @author Alexander Kochurov ([email protected])
 */
public interface CleaningNode {
    /**
     * Invalidates the cache. Must be non-blocking. It should either clear the cache immediately
     * or mark it as dirty and clean on the next read/write operation.
     */
    void invalidate();

    /**
     * @return associated dependency node
     */
    DependencyNode getDependencyNode();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy