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

io.github.mike10004.containment.lifecycle.CachingProvider Maven / Gradle / Ivy

There is a newer version: 0.6
Show newest version
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