public int compare(GlobalTransaction other) {
    if (this == other) {
      return 0;
    }
    long compare = getExpirationTime() - other.getExpirationTime();
    if (compare < 0) {
      return -1;
    } else if (compare > 0) {
      return 1;
    }
    // need to compare something else to break the tie to fix bug 39579
    if (GTid.length < other.GTid.length) {
      return -1;
    } else if (GTid.length > other.GTid.length) {
      return 1;
    }
    // need to compare the bytes
    for (int i = 0; i < GTid.length; i++) {
      if (GTid[i] < other.GTid[i]) {
        return -1;
      } else if (GTid[i] > other.GTid[i]) {
        return 1;
      }
    }
    // If we get here the GTids are the same!
    int myId = System.identityHashCode(this);
    int otherId = System.identityHashCode(other);
    if (myId < otherId) {
      return -1;
    } else if (myId > otherId) {
      return 1;
    } else {
      // we could just add another field to this class which has a value
      // obtained from a static atomic
      throw new IllegalStateException(String.format("Could not compare %s to %s",
          this, other));
    }
  }
Returns the List of Transactions associated with this GlobalTransaction Asif : Reduced the
visibility
geode-core/src/main/java/org/apache/geode/internal/jta/GlobalTransaction.java