Global and local transaction

Please explain global/local transaction
using TaminoAPI4J.
Mechanics of locking documents - how work effectively.

A local transaction is a normal transaction against Tamino. A global transaction is a distributed transaction, which is not supported yet.

Can you please rephrase “Mechanics of locking documents - how work effectively.”. I have no clue what your question is.