Tabnine Logo
Broker.getScheduler
Code IndexAdd Tabnine to your IDE (free)

How to use
getScheduler
method
in
org.apache.activemq.broker.Broker

Best Java code snippets using org.apache.activemq.broker.Broker.getScheduler (Showing top 20 results out of 315)

origin: apache/activemq

@Override
public void setBrokerService(Broker broker) {
  this.scheduler = broker.getScheduler();
  this.broker = broker;
}
origin: apache/activemq

public void setBroker(Broker broker) {  
  this.scheduler = broker.getScheduler();
}
origin: apache/activemq

@Override
public Scheduler getScheduler() {
  return getNext().getScheduler();
}
origin: apache/activemq

public PrefetchSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info, PendingMessageCursor cursor) throws JMSException {
  super(broker,context, info);
  this.usageManager=usageManager;
  pending = cursor;
  try {
    pending.start();
  } catch (Exception e) {
    throw new JMSException(e.getMessage());
  }
  this.scheduler = broker.getScheduler();
}
origin: apache/activemq

public TopicSubscription(Broker broker,ConnectionContext context, ConsumerInfo info, SystemUsage usageManager) throws Exception {
  super(broker, context, info);
  this.usageManager = usageManager;
  String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]";
  if (info.getDestination().isTemporary() || broker.getTempDataStore()==null ) {
    this.matched = new VMPendingMessageCursor(false);
  } else {
    this.matched = new FilePendingMessageCursor(broker,matchedName,false);
  }
  this.scheduler = broker.getScheduler();
}
origin: apache/activemq

/**
 * @param brokerService
 * @param store
 * @param destination
 * @param parentStats
 * @throws Exception
 */
public BaseDestination(BrokerService brokerService, MessageStore store, ActiveMQDestination destination, DestinationStatistics parentStats) throws Exception {
  this.brokerService = brokerService;
  this.broker = brokerService.getBroker();
  this.store = store;
  this.destination = destination;
  // let's copy the enabled property from the parent DestinationStatistics
  this.destinationStatistics.setEnabled(parentStats.isEnabled());
  this.destinationStatistics.setParent(parentStats);
  this.systemUsage = new SystemUsage(brokerService.getProducerSystemUsage(), destination.toString());
  this.memoryUsage = this.systemUsage.getMemoryUsage();
  this.memoryUsage.setUsagePortion(1.0f);
  this.regionBroker = brokerService.getRegionBroker();
  this.scheduler = brokerService.getBroker().getScheduler();
}
origin: org.apache.activemq/activemq-broker

@Override
public void setBrokerService(Broker broker) {
  this.scheduler = broker.getScheduler();
  this.broker = broker;
}
origin: pierre/meteo

public PrefetchSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info, PendingMessageCursor cursor) throws InvalidSelectorException {
  super(broker,context, info);
  this.usageManager=usageManager;
  pending = cursor;
  this.scheduler = broker.getScheduler();
}
origin: org.apache.activemq/activemq-all

@Override
public void setBrokerService(Broker broker) {
  this.scheduler = broker.getScheduler();
  this.broker = broker;
}
origin: pierre/meteo

public void setBrokerService(Broker broker) {
  this.scheduler = broker.getScheduler();
  this.broker = broker;
}
origin: org.apache.activemq/activemq-osgi

@Override
public void setBrokerService(Broker broker) {
  this.scheduler = broker.getScheduler();
  this.broker = broker;
}
origin: org.apache.activemq/activemq-broker

@Override
public Scheduler getScheduler() {
  return getNext().getScheduler();
}
origin: org.apache.activemq/activemq-all

@Override
public Scheduler getScheduler() {
  return getNext().getScheduler();
}
origin: org.apache.activemq/activemq-osgi

@Override
public Scheduler getScheduler() {
  return getNext().getScheduler();
}
origin: org.apache.activemq/activemq-broker

public PrefetchSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info, PendingMessageCursor cursor) throws JMSException {
  super(broker,context, info);
  this.usageManager=usageManager;
  pending = cursor;
  try {
    pending.start();
  } catch (Exception e) {
    throw new JMSException(e.getMessage());
  }
  this.scheduler = broker.getScheduler();
}
origin: org.apache.activemq/activemq-all

public PrefetchSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info, PendingMessageCursor cursor) throws JMSException {
  super(broker,context, info);
  this.usageManager=usageManager;
  pending = cursor;
  try {
    pending.start();
  } catch (Exception e) {
    throw new JMSException(e.getMessage());
  }
  this.scheduler = broker.getScheduler();
}
origin: org.apache.activemq/activemq-osgi

public PrefetchSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info, PendingMessageCursor cursor) throws JMSException {
  super(broker,context, info);
  this.usageManager=usageManager;
  pending = cursor;
  try {
    pending.start();
  } catch (Exception e) {
    throw new JMSException(e.getMessage());
  }
  this.scheduler = broker.getScheduler();
}
origin: org.apache.activemq/activemq-all

public TopicSubscription(Broker broker,ConnectionContext context, ConsumerInfo info, SystemUsage usageManager) throws Exception {
  super(broker, context, info);
  this.usageManager = usageManager;
  String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]";
  if (info.getDestination().isTemporary() || broker.getTempDataStore()==null ) {
    this.matched = new VMPendingMessageCursor(false);
  } else {
    this.matched = new FilePendingMessageCursor(broker,matchedName,false);
  }
  this.scheduler = broker.getScheduler();
}
origin: org.apache.activemq/activemq-broker

public TopicSubscription(Broker broker,ConnectionContext context, ConsumerInfo info, SystemUsage usageManager) throws Exception {
  super(broker, context, info);
  this.usageManager = usageManager;
  String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]";
  if (info.getDestination().isTemporary() || broker.getTempDataStore()==null ) {
    this.matched = new VMPendingMessageCursor(false);
  } else {
    this.matched = new FilePendingMessageCursor(broker,matchedName,false);
  }
  this.scheduler = broker.getScheduler();
}
origin: org.apache.activemq/activemq-osgi

public TopicSubscription(Broker broker,ConnectionContext context, ConsumerInfo info, SystemUsage usageManager) throws Exception {
  super(broker, context, info);
  this.usageManager = usageManager;
  String matchedName = "TopicSubscription:" + CURSOR_NAME_COUNTER.getAndIncrement() + "[" + info.getConsumerId().toString() + "]";
  if (info.getDestination().isTemporary() || broker.getTempDataStore()==null ) {
    this.matched = new VMPendingMessageCursor(false);
  } else {
    this.matched = new FilePendingMessageCursor(broker,matchedName,false);
  }
  this.scheduler = broker.getScheduler();
}
org.apache.activemq.brokerBrokergetScheduler

Popular methods of Broker

  • getAdaptor
    Get a Broker from the Broker Stack that is a particular class
  • getDestinationMap
    return a reference destination map of a region based on the destination type
  • removeDestination
  • commitTransaction
    Commits a transaction.
  • forgetTransaction
    Forgets a transaction.
  • getBrokerService
  • getClients
  • getDestinations
  • getPreparedTransactions
    Gets a list of all the prepared xa transactions.
  • getVmConnectorURI
  • removeConsumer
  • acknowledge
  • removeConsumer,
  • acknowledge,
  • addBroker,
  • addConnection,
  • addConsumer,
  • addDestination,
  • addDestinationInfo,
  • addProducer,
  • addSession,
  • beginTransaction

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Reference (javax.naming)
  • Top PhpStorm 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