01: /*
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2002,2008 Oracle. All rights reserved.
05: *
06: * $Id: DeadlockException.java,v 1.13.2.3 2008/01/07 15:14:08 cwl Exp $
07: */
08:
09: package com.sleepycat.je;
10:
11: /**
12: * Javadoc for this public class is generated
13: * via the doc templates in the doc_src directory.
14: */
15: public class DeadlockException extends DatabaseException {
16:
17: private long[] ownerTxnIds;
18: private long[] waiterTxnIds;
19:
20: public DeadlockException() {
21: super ();
22: }
23:
24: public DeadlockException(Throwable t) {
25: super (t);
26: }
27:
28: public DeadlockException(String message) {
29: super (message);
30: }
31:
32: public DeadlockException(String message, Throwable t) {
33: super (message, t);
34: }
35:
36: public void setOwnerTxnIds(long[] ownerTxnIds) {
37: this .ownerTxnIds = ownerTxnIds;
38: }
39:
40: public long[] getOwnerTxnIds() {
41: return ownerTxnIds;
42: }
43:
44: public void setWaiterTxnIds(long[] waiterTxnIds) {
45: this .waiterTxnIds = waiterTxnIds;
46: }
47:
48: public long[] getWaiterTxnIds() {
49: return waiterTxnIds;
50: }
51: }
|