public void obtain(InternalDistributedSystem system) throws CommitConflictException {
    if (localLocks != null && !localLocks.isEmpty()) {
      txLocalLock(localLocks);
      localLockHeld = true;
    }
    if (distLocks != null && !distLocks.isEmpty()) {
      distLockId = TXLockService.createDTLS(system).txLock(distLocks, otherMembers);
    }
  }
TXLockRequest represents all the locks that need to be made for a single transaction.


@since GemFire 4.0
geode-core/src/main/java/org/apache/geode/internal/cache/TXLockRequest.java