com.atomikos.icatch.admin.jmx.JmxHeuristicTransactionMBean Maven / Gradle / Ivy
/**
* Copyright (C) 2000-2016 Atomikos
*
* This code ("Atomikos TransactionsEssentials"), by itself,
* is being distributed under the
* Apache License, Version 2.0 ("License"), a copy of which may be found at
* http://www.atomikos.com/licenses/apache-license-2.0.txt .
* You may not use this file except in compliance with the License.
*
* While the License grants certain patent license rights,
* those patent license rights only extend to the use of
* Atomikos TransactionsEssentials by itself.
*
* This code (Atomikos TransactionsEssentials) contains certain interfaces
* in package (namespace) com.atomikos.icatch
* (including com.atomikos.icatch.Participant) which, if implemented, may
* infringe one or more patents held by Atomikos.
* It should be appreciated that you may NOT implement such interfaces;
* licensing to implement these interfaces must be obtained separately from Atomikos.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package com.atomikos.icatch.admin.jmx;
/**
* An MBean for heuristic pending transactions.
*/
public interface JmxHeuristicTransactionMBean extends JmxTransactionMBean
{
/**
* Tests if the transaction's 2PC outcome was commit. Needed especially for
* the heuristic states, if the desired outcome (instead of the actual
* state) needs to be retrieved. For instance, if the state is
* STATE_HEUR_HAZARD then extra information is needed for determining if the
* desired outcome was commit or rollback. This method helps here.
*
*
* @return boolean True iff commit decided (either heuristically or by the
* super coordinator.
*/
public boolean getCommitted ();
/**
* Forces the system to forget about the transaction.
*/
public void forceForget ();
}