Module io.inverno.mod.base
Package io.inverno.mod.base.resource
Interface AsyncResourceProvider<A extends AsyncResource>
- Type Parameters:
A
- the type of the provided resource
- All Superinterfaces:
ResourceProvider<A>
A resource provider providing async resources.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault A
getResource
(URI uri, ExecutorService executor) Creates an async resource with the specified URI and executor service.Methods inherited from interface io.inverno.mod.base.resource.ResourceProvider
getResource, getResources, getSupportedSchemes
-
Method Details
-
getResource
default A getResource(URI uri, ExecutorService executor) throws NullPointerException, IllegalArgumentException, ResourceException Creates an async resource with the specified URI and executor service.
- Parameters:
uri
- a URIexecutor
- an executor service- Returns:
- an async resource
- Throws:
NullPointerException
- if the specified URI is nullIllegalArgumentException
- if the specified URI does not point to a valid async resourceResourceException
- if there was an error creating the resource
-