3 class TransactionStatus {
4 static final byte StatusAborted = 1;
5 static final byte StatusPending = 2;
6 static final byte StatusCommitted = 3;
7 // static final byte StatusRetrying = 4;
8 static final byte StatusSent = 5;
9 static final byte StatusNoEffect = 6;
11 private byte status = 0;
12 private boolean applicationReleased = false;
13 private long arbitrator = 0;
14 private boolean wasSentInChain = false;
16 public TransactionStatus(byte _status, long _arbitrator) {
18 arbitrator = _arbitrator;
21 public byte getStatus() {
25 public void setStatus(byte _status) {
29 public void setSentTransaction() {
30 wasSentInChain = true;
33 public boolean getSentTransaction() {
34 return wasSentInChain;
38 // public void setArbitrator(long _arbitrator) {
39 // arbitrator = _arbitrator;
42 public long getArbitrator() {
46 public void release() {
47 applicationReleased = true;
50 public boolean getReleased() {
51 return applicationReleased;