The Mutex component locks the thread associated with the specified ID.
This component can be used to create mutex locks. Until the lock is destroyed, other flows are blocked from locking the mutex specified by the assigned ID. Until the lock expires or the flow ends, the lock can not be extended. When a lock is activated and several threads are waiting on this lock, which of the threads will be activated first is not predictable.
Input | Format | All |
---|---|---|
Number of Inputs | 1 | |
Output | Format | All |
Description |
The input stream is copied to the output stream. |
Name | Data Type/Selection | Mapping | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
ID | string | Yes |
The lock ID. If no lock ID is specified, a default ID is assigned. The default ID is of the form: {OwnerName} + {ProjectName} + {FlowName} |
||||||
ExclusionLockCheck | choice | None |
If specified true . when lock is already actived , component throw an exception .
|
||||||
Timeout | int | None |
The length of time in seconds that the lock is to exist. An Exception is thrown if the lock is not activated before the timeout. The timeout can not be set to zero. |
||||||
Action | choice | None |
Defines whether to lock, or unlock. If unlocking, it is possible to unlock a mutex held by another thread. |
This component cannot be the starting point for a loop.
Commit |
Do Nothing |
---|---|
Rollback |
Do Nothing |
Type | Parameters | Flow Input Stream | Error Code | Cause |
---|---|---|---|---|
Exception | none |
This component's input stream. | none | The lock is not activated before the specified timeout. |
none | When ExclusionLockCheck is true and the lock is already actived. |