1 /*** 2 * 3 * Copyright 2004 Protique Ltd 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 **/ 18 package org.codehaus.activemq.message; 19 20 /*** 21 * @version $Revision: 1.4 $ 22 */ 23 public interface TransactionType { 24 25 /*** 26 * Transaction state not set 27 */ 28 int NOT_SET = 0; 29 /*** 30 * Start a transaction 31 */ 32 int START = 101; 33 /*** 34 * Pre-commit a transaction 35 */ 36 int PRE_COMMIT = 102; 37 /*** 38 * Commit a transaction 39 */ 40 int COMMIT = 103; 41 /*** 42 * Recover a transaction 43 */ 44 int RECOVER = 104; 45 /*** 46 * Rollback a transaction 47 */ 48 int ROLLBACK = 105; 49 /*** 50 * End a transaction 51 */ 52 int END = 106; 53 /*** 54 * Forget a transaction 55 */ 56 int FORGET = 107; 57 /*** 58 * Join a transaction 59 */ 60 int JOIN = 108; 61 /*** 62 * Do a one phase commit... No PRE COMMIT has been done. 63 */ 64 int COMMIT_ONE_PHASE = 109; 65 /*** 66 * Get a list of all the XIDs that are currently prepared. 67 */ 68 int XA_RECOVER = 110; 69 /*** 70 * Get a the transaction timeout for the RM 71 */ 72 int GET_TX_TIMEOUT = 111; 73 /*** 74 * Set a the transaction timeout for the RM 75 */ 76 int SET_TX_TIMEOUT = 112; 77 /*** 78 * Gets the unique id of the resource manager. 79 */ 80 int GET_RM_ID = 113; 81 }