001 /** 002 * 003 * Copyright 2004 Protique Ltd 004 * 005 * Licensed under the Apache License, Version 2.0 (the "License"); 006 * you may not use this file except in compliance with the License. 007 * You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 * 017 **/ 018 package org.activemq.message; 019 020 /** 021 * @version $Revision: 1.1.1.1 $ 022 */ 023 public interface TransactionType { 024 025 /** 026 * Transaction state not set 027 */ 028 int NOT_SET = 0; 029 /** 030 * Start a transaction 031 */ 032 int START = 101; 033 /** 034 * Pre-commit a transaction 035 */ 036 int PRE_COMMIT = 102; 037 /** 038 * Commit a transaction 039 */ 040 int COMMIT = 103; 041 /** 042 * Recover a transaction 043 */ 044 int RECOVER = 104; 045 /** 046 * Rollback a transaction 047 */ 048 int ROLLBACK = 105; 049 /** 050 * End a transaction 051 */ 052 int END = 106; 053 /** 054 * Forget a transaction 055 */ 056 int FORGET = 107; 057 /** 058 * Join a transaction 059 */ 060 int JOIN = 108; 061 /** 062 * Do a one phase commit... No PRE COMMIT has been done. 063 */ 064 int COMMIT_ONE_PHASE = 109; 065 /** 066 * Get a list of all the XIDs that are currently prepared. 067 */ 068 int XA_RECOVER = 110; 069 /** 070 * Get a the transaction timeout for the RM 071 */ 072 int GET_TX_TIMEOUT = 111; 073 /** 074 * Set a the transaction timeout for the RM 075 */ 076 int SET_TX_TIMEOUT = 112; 077 /** 078 * Gets the unique id of the resource manager. 079 */ 080 int GET_RM_ID = 113; 081 }