congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MemoryTransactionStore.onRecovered
Code IndexAdd Tabnine to your IDE (free)

How to use
onRecovered
method
in
org.apache.activemq.store.memory.MemoryTransactionStore

Best Java code snippets using org.apache.activemq.store.memory.MemoryTransactionStore.onRecovered (Showing top 4 results out of 315)

origin: apache/activemq

@Override
public synchronized void recover(TransactionRecoveryListener listener) throws IOException {
  // All the inflight transactions get rolled back..
  inflightTransactions.clear();
  this.doingRecover = true;
  try {
    for (Iterator<TransactionId> iter = preparedTransactions.keySet().iterator(); iter.hasNext();) {
      Object txid = iter.next();
      Tx tx = preparedTransactions.get(txid);
      listener.recover((XATransactionId) txid, tx.getMessages(), tx.getAcks());
      onRecovered(tx);
    }
  } finally {
    this.doingRecover = false;
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public synchronized void recover(TransactionRecoveryListener listener) throws IOException {
  // All the inflight transactions get rolled back..
  inflightTransactions.clear();
  this.doingRecover = true;
  try {
    for (Iterator<TransactionId> iter = preparedTransactions.keySet().iterator(); iter.hasNext();) {
      Object txid = iter.next();
      Tx tx = preparedTransactions.get(txid);
      listener.recover((XATransactionId) txid, tx.getMessages(), tx.getAcks());
      onRecovered(tx);
    }
  } finally {
    this.doingRecover = false;
  }
}
origin: org.apache.activemq/activemq-all

@Override
public synchronized void recover(TransactionRecoveryListener listener) throws IOException {
  // All the inflight transactions get rolled back..
  inflightTransactions.clear();
  this.doingRecover = true;
  try {
    for (Iterator<TransactionId> iter = preparedTransactions.keySet().iterator(); iter.hasNext();) {
      Object txid = iter.next();
      Tx tx = preparedTransactions.get(txid);
      listener.recover((XATransactionId) txid, tx.getMessages(), tx.getAcks());
      onRecovered(tx);
    }
  } finally {
    this.doingRecover = false;
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
public synchronized void recover(TransactionRecoveryListener listener) throws IOException {
  // All the inflight transactions get rolled back..
  inflightTransactions.clear();
  this.doingRecover = true;
  try {
    for (Iterator<TransactionId> iter = preparedTransactions.keySet().iterator(); iter.hasNext();) {
      Object txid = iter.next();
      Tx tx = preparedTransactions.get(txid);
      listener.recover((XATransactionId) txid, tx.getMessages(), tx.getAcks());
      onRecovered(tx);
    }
  } finally {
    this.doingRecover = false;
  }
}
org.apache.activemq.store.memoryMemoryTransactionStoreonRecovered

Popular methods of MemoryTransactionStore

  • proxy
  • <init>
  • acknowledge
  • addMessage
  • delete
  • getTx
  • removeMessage
  • onProxyQueueStore
  • onProxyTopicStore
  • recover

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JCheckBox (javax.swing)
  • JOptionPane (javax.swing)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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