Tabnine Logo
SubordinateBACoordinator.phase2Commit
Code IndexAdd Tabnine to your IDE (free)

How to use
phase2Commit
method
in
com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinate.SubordinateBACoordinator

Best Java code snippets using com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinate.SubordinateBACoordinator.phase2Commit (Showing top 2 results out of 315)

origin: org.jboss.jbossts.xts/jbossxts

/**
 * this is driven by a coordinator-completion participant registered on behalf of the coordinator
 * and is required to propagate the close to all registered participants.
 */
public int close () throws SystemException
{
  int status = status();
  int result;
  if (status == ActionStatus.COMMITTING) {
    // TODO -- need to do completion processing here?
    // we already completed and ran phase 1 so do a phase 2 commit
    phase2Commit(true);
    result = status();
  } else {
    // we have not yet completed so we can rely upon the parent implementation to do
    // everything we need
    result = super.close();
  }
  // if we have completed then remove the coordinator from the recovered coordinators table
  if (status() != ActionStatus.COMMITTING) {
    SubordinateBACoordinator.removeRecoveredCoordinator(this);
  }
  // run any callback associated with this transaction
  runCallback(get_uid().stringForm());
  return result;
}
origin: org.jboss.jbossts/jbossxts

/**
 * this is driven by a coordinator-completion participant registered on behalf of the coordinator
 * and is required to propagate the close to all registered participants.
 */
public int close () throws SystemException
{
  int status = status();
  int result;
  if (status == ActionStatus.COMMITTING) {
    // TODO -- need to do completion processing here?
    // we already completed and ran phase 1 so do a phase 2 commit
    phase2Commit(true);
    result = status();
  } else {
    // we have not yet completed so we can rely upon the parent implementation to do
    // everything we need
    result = super.close();
  }
  // if we have completed then remove the coordinator from the recovered coordinators table
  if (status() != ActionStatus.COMMITTING) {
    SubordinateBACoordinator.removeRecoveredCoordinator(this);
  }
  // run any callback associated with this transaction
  runCallback(get_uid().stringForm());
  return result;
}
com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinateSubordinateBACoordinatorphase2Commit

Popular methods of SubordinateBACoordinator

  • get_uid
  • cancel
    this is driven by a coordinator-completion participant registered on behalf of the coordinator and i
  • getRecoveredCoordinator
  • activate
  • addActiveProxy
  • addCallback
    register a callback to be called when a subordinate transaction with a specific key executes a commi
  • addRecoveredCoordinator
  • close
    this is driven by a coordinator-completion participant registered on behalf of the coordinator and i
  • complete
    this is driven by a coordinator-completion participant registered on behalf of the coordinator and i
  • delistParticipant
  • enlistParticipant
  • getCoordinatorCompletionParticipantid
    return a uid for the corodinator completion participant registered on behalf of this coordinator
  • enlistParticipant,
  • getCoordinatorCompletionParticipantid,
  • isActivated,
  • isOrphaned,
  • listRecoveredCoordinators,
  • participantCannotComplete,
  • participantCompleted,
  • participantFaulted,
  • phase2Abort,
  • removeActiveProxy

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Table (org.hibernate.mapping)
    A relational table
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now