Private
Readonly
auxiliaryPrivate
Readonly
locksProtected
Readonly
loggerPrivate
Readonly
sourceCreates a new resource in the container.
Container in which to create a resource.
Representation of the new resource
Optional
conditions: ConditionsOptional conditions under which to proceed.
A ChangeMap.
Protected
createWraps a representation to make it reset the timeout timer every time data is read.
The representation to wrap
Function to call to reset the timer.
Deletes a resource.
Identifier of resource to delete.
Optional
conditions: ConditionsOptional conditions under which to proceed.
A ChangeMap.
Protected
getAcquires the correct identifier to lock this resource. For auxiliary resources this means the subject identifier.
Retrieves a representation of a resource.
Identifier of the resource to read.
Preferences indicating desired representations.
Optional
conditions: ConditionsOptional conditions under which to proceed.
A representation corresponding to the identifier.
Check if a resource exists in this ResourceSet.
Identifier of resource to check.
A promise resolving if the resource already exists.
Protected
lockedAcquires a lock that is only released when all data of the resulting representation data has been read, an error occurs, or the timeout has been triggered. The resulting data stream will be adapted to reset the timer every time data is read.
In case the data of the resulting stream is not needed it should be closed to prevent a timeout error.
Identifier that should be locked.
Function to be executed while the resource is locked.
Sets or updates the representation of a resource, creating a new resource and intermediary containers as needed.
Identifier of resource to update.
Description of which parts to update.
Optional
conditions: ConditionsOptional conditions under which to proceed.
A ChangeMap.
Sets or replaces the representation of a resource, creating a new resource and intermediary containers as needed.
Identifier of resource to update.
New representation of the resource.
Optional
conditions: ConditionsOptional conditions under which to proceed.
A ChangeMap.
Protected
wait
Store that for every call acquires a lock before executing it on the requested resource, and releases it afterwards. In case the request returns a Representation the lock will only be released when the data stream is finished.
For auxiliary resources the lock will be applied to the subject resource. The actual operation is still executed on the auxiliary resource.