Using Queues to Lock and Unlock
Units
Units are always locked and unlocked when the COMMIT WORK is performed.
Using the classes CL_QRFC_LOCK_INBOUND, CL_QRFC_LOCK_OUTBOUND and CL_QRFC_LOCK_NOSEND, you can use queue locks to prevent the processing of units, and you can also cancel a queue lock.
Lock Methods


Operation on the Queue |
Content of the Queue |
Creation of Unit 1 |
|
Creation of Unit 2 |
|
COMMIT WORK |
Unit 1 – Unit 2 |
Creation of Unit 3 |
|
Setting of lock A at current position |
|
COMMIT WORK |
Unit 1 – Unit 2 – Lock A – Unit 3 |
Setting of lock B at the beginning |
|
Processing of unit 1 by the scheduler |
Unit 2 – Lock A – Unit 3 |
COMMIT WORK |
Unit 1 – Unit 2 – Lock A – Unit 3 |