@Override
  public void toData(DataOutput out,
      SerializationContext context) throws IOException {
    InternalDataSerializer.invokeToData(txLockId, out);
    InternalDataSerializer.writeSet(participants, out);
    if (reqs == null) {
      out.writeInt(-1);
    } else {
      out.writeInt(reqs.size());
      for (final Object req : reqs) {
        TXRegionLockRequestImpl elem = (TXRegionLockRequestImpl) req;
        InternalDataSerializer.invokeToData(elem, out);
      }
    }
  }
Each lock batch contains a set of distributed system member ids that are participating in the
transaction. Public access for testing purposes.

@return participants in the transaction
geode-core/src/main/java/org/apache/geode/internal/cache/locks/TXLockBatch.java