1 8 9 package com.sleepycat.je.txn; 10 11 16 class LockConflict { 17 18 static final LockConflict ALLOW = new LockConflict(true, false); 19 static final LockConflict BLOCK = new LockConflict(false, false); 20 static final LockConflict RESTART = new LockConflict(false, true); 21 22 private boolean allowed; 23 private boolean restart; 24 25 28 private LockConflict(boolean allowed, boolean restart) { 29 this.allowed = allowed; 30 this.restart= restart; 31 } 32 33 40 boolean getAllowed() { 41 return allowed; 42 } 43 44 52 boolean getRestart() { 53 return restart; 54 } 55 } 56 | Popular Tags |