
io.github.mike10004.containment.lifecycle.CachingProvider Maven / Gradle / Ivy
package io.github.mike10004.containment.lifecycle;
/**
* Interface of a service that provides access to a cached resource.
* In the case of a failure to produce the resource, the failure is cached
* instead. A second attempt to produce a resource is never executed.
* @param provided resource type
*/
public interface CachingProvider {
/**
* Provides a provision that may contain the resource or a failure indication.
* @return the provision
*/
Provision provide();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy