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

How to use
runCallback
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.runCallback (Showing top 4 results out of 315)

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 cancel to all registered participants.
 */
public int cancel ()
{
  int status = status();
  int result;
  // TODO -- check if there is a window here where status could change to COMMITTING
  if (status == ActionStatus.COMMITTING) {
    phase2Abort(true);
    result = status();
  } else {
    result = super.cancel();
  }
  SubordinateBACoordinator.removeRecoveredCoordinator(this);
  // run any callback associated with this transaction
  runCallback(get_uid().stringForm());
  return result;
}
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 cancel to all registered participants.
 */
public int cancel ()
{
  int status = status();
  int result;
  // TODO -- check if there is a window here where status could change to COMMITTING
  if (status == ActionStatus.COMMITTING) {
    phase2Abort(true);
    result = status();
  } else {
    result = super.cancel();
  }
  SubordinateBACoordinator.removeRecoveredCoordinator(this);
  // run any callback associated with this transaction
  runCallback(get_uid().stringForm());
  return result;
}
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.subordinateSubordinateBACoordinatorrunCallback

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

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Notification (javax.management)
  • Option (scala)
  • Best IntelliJ 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