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

How to use
commit
method
in
org.apache.activemq.store.memory.MemoryTransactionStore$Tx

Best Java code snippets using org.apache.activemq.store.memory.MemoryTransactionStore$Tx.commit (Showing top 5 results out of 315)

origin: apache/activemq

@Override
public void commit(TransactionId txid, boolean wasPrepared, Runnable preCommit, Runnable postCommit) throws IOException {
  if (preCommit != null) {
    preCommit.run();
  }
  Tx tx;
  if (wasPrepared) {
    tx = preparedTransactions.get(txid);
  } else {
    tx = inflightTransactions.remove(txid);
  }
  if (tx != null) {
    tx.commit();
  }
  if (wasPrepared) {
    preparedTransactions.remove(txid);
  }
  if (postCommit != null) {
    postCommit.run();
  }
}
origin: org.apache.activemq/activemq-all

@Override
public void commit(TransactionId txid, boolean wasPrepared, Runnable preCommit, Runnable postCommit) throws IOException {
  if (preCommit != null) {
    preCommit.run();
  }
  Tx tx;
  if (wasPrepared) {
    tx = preparedTransactions.remove(txid);
  } else {
    tx = inflightTransactions.remove(txid);
  }
  if (tx != null) {
    tx.commit();
  }
  if (postCommit != null) {
    postCommit.run();
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public void commit(TransactionId txid, boolean wasPrepared, Runnable preCommit, Runnable postCommit) throws IOException {
  if (preCommit != null) {
    preCommit.run();
  }
  Tx tx;
  if (wasPrepared) {
    tx = preparedTransactions.remove(txid);
  } else {
    tx = inflightTransactions.remove(txid);
  }
  if (tx != null) {
    tx.commit();
  }
  if (postCommit != null) {
    postCommit.run();
  }
}
origin: pierre/meteo

public void commit(TransactionId txid, boolean wasPrepared, Runnable preCommit,Runnable postCommit) throws IOException {
  if (preCommit != null) {
    preCommit.run();
  }
  Tx tx;
  if (wasPrepared) {
    tx = preparedTransactions.remove(txid);
  } else {
    tx = inflightTransactions.remove(txid);
  }
  if (tx == null) {
    if (postCommit != null) {
      postCommit.run();
    }
    return;
  }
  // ensure message order w.r.t to cursor and store for setBatch()
  synchronized (this) {
    tx.commit();
    if (postCommit != null) {
      postCommit.run();
    }
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
public void commit(TransactionId txid, boolean wasPrepared, Runnable preCommit, Runnable postCommit) throws IOException {
  if (preCommit != null) {
    preCommit.run();
  }
  Tx tx;
  if (wasPrepared) {
    tx = preparedTransactions.remove(txid);
  } else {
    tx = inflightTransactions.remove(txid);
  }
  if (tx != null) {
    tx.commit();
  }
  if (postCommit != null) {
    postCommit.run();
  }
}
org.apache.activemq.store.memoryMemoryTransactionStore$Txcommit

Popular methods of MemoryTransactionStore$Tx

  • add
  • <init>
  • getAcks
  • getMessages

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Top 12 Jupyter Notebook Extensions
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