import com.google.common.base.Preconditions;
public class TransactionIdentifier {
- private static final String TX_SEPARATOR = "-txn-";
+ protected static final String TX_SEPARATOR = "-txn-";
+
+ protected String getMemberName() {
+ return memberName;
+ }
+
+ protected long getCounter() {
+ return counter;
+ }
private final String memberName;
private final long counter;
this.counter = counter;
}
+ public String getChainId() {
+ return "";
+ }
+
+ public static TransactionIdentifier create(String memberName, long counter) {
+ return new TransactionIdentifier(memberName, counter);
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) {
return stringRepresentation;
}
+
}