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

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

origin: org.jboss.jbossts/jbossxts

/**
 * run parent activate and also make this coordinator visible if there might be a durable participant waiting
 * for it to commit.
 * @return
 */
public boolean activate()
{
  boolean result = super.activate();
  // if we cannot activate we want the participant which was registered on behalf of this
  // coordinator to produce a heuristic result for the transaction. it will do this if it
  // finds no entry for the coordinate in the subordinate coordinators list. in this case
  // the subordinate transaction record needs to left as is awaiting manual intervention.
  if (result) {
    // record that the activation worked
    setActivated();
    int status = status();
    if (status == ActionStatus.PREPARED || status == ActionStatus.COMMITTING) {
      // we need to install this coordinator in a global table so that the participant which
      // was driving it will know that it has been recovered but not yet committed
      SubordinateBACoordinator.addRecoveredCoordinator(this);
    }
  }
  return result;
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * run parent activate and also make this coordinator visible if there might be a durable participant waiting
 * for it to commit.
 * @return
 */
public boolean activate()
{
  boolean result = super.activate();
  // if we cannot activate we want the participant which was registered on behalf of this
  // coordinator to produce a heuristic result for the transaction. it will do this if it
  // finds no entry for the coordinate in the subordinate coordinators list. in this case
  // the subordinate transaction record needs to left as is awaiting manual intervention.
  if (result) {
    // record that the activation worked
    setActivated();
    int status = status();
    if (status == ActionStatus.PREPARED || status == ActionStatus.COMMITTING) {
      // we need to install this coordinator in a global table so that the participant which
      // was driving it will know that it has been recovered but not yet committed
      SubordinateBACoordinator.addRecoveredCoordinator(this);
    }
  }
  return result;
}
origin: org.jboss.jbossts.xts/recovery

/**
 * run parent activate and also make this coordinator visible if there might be a durable participant waiting
 * for it to commit.
 * @return
 */
public boolean activate()
{
  boolean result = super.activate();
  // if we cannot activate we want the participant which was registered on behalf of this
  // coordinator to produce a heuristic result for the transaction. it will do this if it
  // finds no entry for the coordinate in the subordinate coordinators list. in this case
  // the subordinate transaction record needs to left as is awaiting manual intervention.
  if (result) {
    // record that the activation worked
    setActivated();
    int status = status();
    if (status == ActionStatus.PREPARED || status == ActionStatus.COMMITTING) {
      // we need to install this coordinator in a global table so that the participant which
      // was driving it will know that it has been recovered but not yet committed
      SubordinateBACoordinator.addRecoveredCoordinator(this);
    }
  }
  return result;
}
com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinateSubordinateBACoordinatoractivate

Javadoc

flag identifying whether this coordinator is active, set true for normal transactions and false for recovered transactions until they are activated

Popular methods of SubordinateBACoordinator

  • get_uid
  • cancel
    this is driven by a coordinator-completion participant registered on behalf of the coordinator and i
  • getRecoveredCoordinator
  • 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
  • isActivated
  • getCoordinatorCompletionParticipantid,
  • isActivated,
  • isOrphaned,
  • listRecoveredCoordinators,
  • participantCannotComplete,
  • participantCompleted,
  • participantFaulted,
  • phase2Abort,
  • removeActiveProxy

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top Sublime Text 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