
com.artipie.asto.misc.Cleanable Maven / Gradle / Ivy
/*
* The MIT License (MIT) Copyright (c) 2020-2023 artipie.com
* https://github.com/artipie/artipie/blob/master/LICENSE.txt
*/
package com.artipie.asto.misc;
/**
* Cleanable interface to represent objects that can be cleaned/invalidated.
* @param The key type.
* @since 1.16
*/
public interface Cleanable {
/**
* Invalidate object by the specified key.
* @param key The key
*/
void invalidate(T key);
/**
* Invalidate all.
*/
void invalidateAll();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy