Tabnine Logo
MemoryTransactionStore.getTx
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/activemq

public void acknowledge(final TopicMessageStore destination, final String clientId, final String subscriptionName, final MessageId messageId,
  final MessageAck ack) throws IOException {
  if (doingRecover) {
    return;
  }
  if (ack.isInTransaction()) {
    Tx tx = getTx(ack.getTransactionId());
    tx.add(new RemoveMessageCommand() {
      @Override
      public MessageAck getMessageAck() {
        return ack;
      }
      @Override
      public void run(ConnectionContext ctx) throws IOException {
        destination.acknowledge(ctx, clientId, subscriptionName, messageId, ack);
      }
      @Override
      public MessageStore getMessageStore() {
        return destination;
      }
    });
  } else {
    destination.acknowledge(null, clientId, subscriptionName, messageId, ack);
  }
}
origin: apache/activemq

/**
 * @param ack
 * @throws IOException
 */
final void removeMessage(final MessageStore destination, final MessageAck ack) throws IOException {
  if (doingRecover) {
    return;
  }
  if (ack.isInTransaction()) {
    Tx tx = getTx(ack.getTransactionId());
    tx.add(new RemoveMessageCommand() {
      @Override
      public MessageAck getMessageAck() {
        return ack;
      }
      @Override
      public void run(ConnectionContext ctx) throws IOException {
        destination.removeMessage(ctx, ack);
      }
      @Override
      public MessageStore getMessageStore() {
        return destination;
      }
    });
  } else {
    destination.removeMessage(null, ack);
  }
}
origin: apache/activemq

Tx tx = getTx(message.getTransactionId());
tx.add(new AddMessageCommand() {
  @SuppressWarnings("unused")
origin: pierre/meteo

final void acknowledge(final TopicMessageStore destination, final String clientId, final String subscriptionName,
            final MessageId messageId, final MessageAck ack) throws IOException {
  if (doingRecover) {
    return;
  }
  if (ack.isInTransaction()) {
    Tx tx = getTx(ack.getTransactionId());
    tx.add(new RemoveMessageCommand() {
      public MessageAck getMessageAck() {
        return ack;
      }
      public void run(ConnectionContext ctx) throws IOException {
        destination.acknowledge(ctx, clientId, subscriptionName, messageId, ack);
      }
    });
  } else {
    destination.acknowledge(null, clientId, subscriptionName, messageId, ack);
  }
}
origin: pierre/meteo

/**
 * @param ack
 * @throws IOException
 */
final void removeMessage(final MessageStore destination, final MessageAck ack) throws IOException {
  if (doingRecover) {
    return;
  }
  if (ack.isInTransaction()) {
    Tx tx = getTx(ack.getTransactionId());
    tx.add(new RemoveMessageCommand() {
      public MessageAck getMessageAck() {
        return ack;
      }
      public void run(ConnectionContext ctx) throws IOException {
        destination.removeMessage(ctx, ack);
      }
    });
  } else {
    destination.removeMessage(null, ack);
  }
}
origin: org.apache.activemq/activemq-all

public void acknowledge(final TopicMessageStore destination, final String clientId, final String subscriptionName, final MessageId messageId,
  final MessageAck ack) throws IOException {
  if (doingRecover) {
    return;
  }
  if (ack.isInTransaction()) {
    Tx tx = getTx(ack.getTransactionId());
    tx.add(new RemoveMessageCommand() {
      @Override
      public MessageAck getMessageAck() {
        return ack;
      }
      @Override
      public void run(ConnectionContext ctx) throws IOException {
        destination.acknowledge(ctx, clientId, subscriptionName, messageId, ack);
      }
      @Override
      public MessageStore getMessageStore() {
        return destination;
      }
    });
  } else {
    destination.acknowledge(null, clientId, subscriptionName, messageId, ack);
  }
}
origin: org.apache.activemq/activemq-broker

public void acknowledge(final TopicMessageStore destination, final String clientId, final String subscriptionName, final MessageId messageId,
  final MessageAck ack) throws IOException {
  if (doingRecover) {
    return;
  }
  if (ack.isInTransaction()) {
    Tx tx = getTx(ack.getTransactionId());
    tx.add(new RemoveMessageCommand() {
      @Override
      public MessageAck getMessageAck() {
        return ack;
      }
      @Override
      public void run(ConnectionContext ctx) throws IOException {
        destination.acknowledge(ctx, clientId, subscriptionName, messageId, ack);
      }
      @Override
      public MessageStore getMessageStore() {
        return destination;
      }
    });
  } else {
    destination.acknowledge(null, clientId, subscriptionName, messageId, ack);
  }
}
origin: org.apache.activemq/activemq-osgi

public void acknowledge(final TopicMessageStore destination, final String clientId, final String subscriptionName, final MessageId messageId,
  final MessageAck ack) throws IOException {
  if (doingRecover) {
    return;
  }
  if (ack.isInTransaction()) {
    Tx tx = getTx(ack.getTransactionId());
    tx.add(new RemoveMessageCommand() {
      @Override
      public MessageAck getMessageAck() {
        return ack;
      }
      @Override
      public void run(ConnectionContext ctx) throws IOException {
        destination.acknowledge(ctx, clientId, subscriptionName, messageId, ack);
      }
      @Override
      public MessageStore getMessageStore() {
        return destination;
      }
    });
  } else {
    destination.acknowledge(null, clientId, subscriptionName, messageId, ack);
  }
}
origin: pierre/meteo

/**
 * @param message
 * @throws IOException
 */
void addMessage(final MessageStore destination, final Message message) throws IOException {
  if (doingRecover) {
    return;
  }
  if (message.getTransactionId() != null) {
    Tx tx = getTx(message.getTransactionId());
    tx.add(new AddMessageCommand() {
      public Message getMessage() {
        return message;
      }
      public void run(ConnectionContext ctx) throws IOException {
        destination.addMessage(ctx, message);
      }
    });
  } else {
    destination.addMessage(null, message);
  }
}

origin: org.apache.activemq/activemq-osgi

/**
 * @param ack
 * @throws IOException
 */
final void removeMessage(final MessageStore destination, final MessageAck ack) throws IOException {
  if (doingRecover) {
    return;
  }
  if (ack.isInTransaction()) {
    Tx tx = getTx(ack.getTransactionId());
    tx.add(new RemoveMessageCommand() {
      @Override
      public MessageAck getMessageAck() {
        return ack;
      }
      @Override
      public void run(ConnectionContext ctx) throws IOException {
        destination.removeMessage(ctx, ack);
      }
      @Override
      public MessageStore getMessageStore() {
        return destination;
      }
    });
  } else {
    destination.removeMessage(null, ack);
  }
}
origin: org.apache.activemq/activemq-all

/**
 * @param ack
 * @throws IOException
 */
final void removeMessage(final MessageStore destination, final MessageAck ack) throws IOException {
  if (doingRecover) {
    return;
  }
  if (ack.isInTransaction()) {
    Tx tx = getTx(ack.getTransactionId());
    tx.add(new RemoveMessageCommand() {
      @Override
      public MessageAck getMessageAck() {
        return ack;
      }
      @Override
      public void run(ConnectionContext ctx) throws IOException {
        destination.removeMessage(ctx, ack);
      }
      @Override
      public MessageStore getMessageStore() {
        return destination;
      }
    });
  } else {
    destination.removeMessage(null, ack);
  }
}
origin: org.apache.activemq/activemq-broker

/**
 * @param ack
 * @throws IOException
 */
final void removeMessage(final MessageStore destination, final MessageAck ack) throws IOException {
  if (doingRecover) {
    return;
  }
  if (ack.isInTransaction()) {
    Tx tx = getTx(ack.getTransactionId());
    tx.add(new RemoveMessageCommand() {
      @Override
      public MessageAck getMessageAck() {
        return ack;
      }
      @Override
      public void run(ConnectionContext ctx) throws IOException {
        destination.removeMessage(ctx, ack);
      }
      @Override
      public MessageStore getMessageStore() {
        return destination;
      }
    });
  } else {
    destination.removeMessage(null, ack);
  }
}
origin: org.apache.activemq/activemq-broker

Tx tx = getTx(message.getTransactionId());
tx.add(new AddMessageCommand() {
  @SuppressWarnings("unused")
origin: org.apache.activemq/activemq-all

Tx tx = getTx(message.getTransactionId());
tx.add(new AddMessageCommand() {
  @SuppressWarnings("unused")
origin: org.apache.activemq/activemq-osgi

Tx tx = getTx(message.getTransactionId());
tx.add(new AddMessageCommand() {
  @SuppressWarnings("unused")
org.apache.activemq.store.memoryMemoryTransactionStoregetTx

Popular methods of MemoryTransactionStore

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

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for WebStorm
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