com.wepay.waltz.common.message.LockFailure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of waltz-common Show documentation
Show all versions of waltz-common Show documentation
Waltz is a distributed/replicated write ahead log for transactions.
package com.wepay.waltz.common.message;
import java.util.Comparator;
public class LockFailure extends AbstractMessage {
public static final Comparator COMPARATOR = (a, b) -> Long.compare(a.transactionId, b.transactionId);
public final long transactionId;
public LockFailure(ReqId reqId, long transactionId) {
super(reqId);
this.transactionId = transactionId;
}
@Override
public byte type() {
return MessageType.LOCK_FAILURE;
}
}