congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TopicRegion.lookupSubscription
Code IndexAdd Tabnine to your IDE (free)

How to use
lookupSubscription
method
in
org.apache.activemq.broker.region.TopicRegion

Best Java code snippets using org.apache.activemq.broker.region.TopicRegion.lookupSubscription (Showing top 2 results out of 315)

origin: org.apache.activemq/activemq-all

ConsumerInfo lookupSubscription(String subscriptionName) throws AmqpProtocolException {
  ConsumerInfo result = null;
  RegionBroker regionBroker;
  try {
    regionBroker = (RegionBroker) brokerService.getBroker().getAdaptor(RegionBroker.class);
  } catch (Exception e) {
    throw new AmqpProtocolException("Error finding subscription: " + subscriptionName + ": " + e.getMessage(), false, e);
  }
  final TopicRegion topicRegion = (TopicRegion) regionBroker.getTopicRegion();
  DurableTopicSubscription subscription = topicRegion.lookupSubscription(subscriptionName, connectionInfo.getClientId());
  if (subscription != null) {
    result = subscription.getConsumerInfo();
  }
  return result;
}
origin: org.apache.activemq/activemq-osgi

ConsumerInfo lookupSubscription(String subscriptionName) throws AmqpProtocolException {
  ConsumerInfo result = null;
  RegionBroker regionBroker;
  try {
    regionBroker = (RegionBroker) brokerService.getBroker().getAdaptor(RegionBroker.class);
  } catch (Exception e) {
    throw new AmqpProtocolException("Error finding subscription: " + subscriptionName + ": " + e.getMessage(), false, e);
  }
  final TopicRegion topicRegion = (TopicRegion) regionBroker.getTopicRegion();
  DurableTopicSubscription subscription = topicRegion.lookupSubscription(subscriptionName, connectionInfo.getClientId());
  if (subscription != null) {
    result = subscription.getConsumerInfo();
  }
  return result;
}
org.apache.activemq.broker.regionTopicRegionlookupSubscription

Popular methods of TopicRegion

  • <init>
  • createConsumerId
  • createDestination
  • createInactiveConsumerInfo
  • createSubscription
  • destroySubscription
  • durableSubscriptionExists
  • hasDurableSubChanged
  • lookup
  • removeDestination
  • setKeepDurableSubsActive
  • doCleanup
  • setKeepDurableSubsActive,
  • doCleanup,
  • getDestinations,
  • getDurableSubscription,
  • getDurableSubscriptions,
  • getSubscriptions,
  • lookupSubscriptions,
  • removeSubscription

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JList (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Github Copilot alternatives
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