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.3 $ 22 */ 23 public interface TransactionType { 24 /*** 25 * Start a transaction 26 */ 27 int START = 101; 28 /*** 29 * Pre-commit a transaction 30 */ 31 int PRE_COMMIT = 102; 32 /*** 33 * Commit a transaction 34 */ 35 int COMMIT = 103; 36 /*** 37 * Recover a transaction 38 */ 39 int RECOVER = 104; 40 /*** 41 * Rollback a transaction 42 */ 43 int ROLLBACK = 105; 44 /*** 45 * End a transaction 46 */ 47 int END = 106; 48 /*** 49 * Forget a transaction 50 */ 51 int FORGET = 107; 52 /*** 53 * Join a transaction 54 */ 55 int JOIN = 108; 56 /*** 57 * Do a one phase commit... No PRE COMMIT has been done. 58 */ 59 int COMMIT_ONE_PHASE = 109; 60 /*** 61 * Get a list of all the XIDs that are currently prepared. 62 */ 63 int XA_RECOVER = 110; 64 /*** 65 * Get a the transaction timeout for the RM 66 */ 67 int GET_TX_TIMEOUT = 111; 68 /*** 69 * Set a the transaction timeout for the RM 70 */ 71 int SET_TX_TIMEOUT = 112; 72 /*** 73 * Gets the unique id of the resource manager. 74 */ 75 int GET_RM_ID = 113; 76 }