Package hudson.model
Class ResourceList
java.lang.Object
hudson.model.ResourceList
List of
Resources that an activity needs.
There are two ways to access resources. Read and write.
As with usual reader/writer pattern, multiple read accesses can
co-exist concurrently, but write access requires exclusive access
(the number of allowed concurrent write activity is determined by
Resource.numConcurrentWrite.
- Since:
- 1.121
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConflict(ResourceList that) Returns the resource in this list that's colliding with the given resource list.booleanisCollidingWith(ResourceList that) Checks if this resource list and that resource list has any conflicting resource access.Adds a resource for read access.toString()static ResourceListunion(ResourceList... lists) Creates union of all resources.static ResourceListunion(Collection<ResourceList> lists) Creates union of all resources.Adds a resource for write access.
-
Field Details
-
EMPTY
Empty resource list.
-
-
Constructor Details
-
ResourceList
public ResourceList()
-
-
Method Details
-
union
Creates union of all resources. -
union
Creates union of all resources. -
r
Adds a resource for read access. -
w
Adds a resource for write access. -
isCollidingWith
Checks if this resource list and that resource list has any conflicting resource access. -
getConflict
Returns the resource in this list that's colliding with the given resource list. -
toString
-