Tabnine Logo
ConsumerControl.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.activemq.command.ConsumerControl
constructor

Best Java code snippets using org.apache.activemq.command.ConsumerControl.<init> (Showing top 20 results out of 315)

origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: apache/activemq

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: apache/activemq

public void connectionInterruptProcessingComplete(Transport transport, ConnectionId connectionId) {
  ConnectionState connectionState = connectionStates.get(connectionId);
  if (connectionState != null) {
    connectionState.setConnectionInterruptProcessingComplete(true);
    Map<ConsumerId, ConsumerInfo> stalledConsumers = connectionState.getRecoveringPullConsumers();
    for (Entry<ConsumerId, ConsumerInfo> entry: stalledConsumers.entrySet()) {
      ConsumerControl control = new ConsumerControl();
      control.setConsumerId(entry.getKey());
      control.setPrefetch(entry.getValue().getPrefetchSize());
      control.setDestination(entry.getValue().getDestination());
      try {
        if (LOG.isDebugEnabled()) {
          LOG.debug("restored recovering consumer: " + control.getConsumerId() + " with: " + control.getPrefetch());
        }
        transport.oneway(control);
      } catch (Exception ex) {
        if (LOG.isDebugEnabled()) {
          LOG.debug("Failed to submit control for consumer: " + control.getConsumerId()
              + " with: " + control.getPrefetch(), ex);
        }
      }
    }
    stalledConsumers.clear();
  }
}
origin: apache/activemq

ConsumerControl stopConsumer = new ConsumerControl();
stopConsumer.setConsumerId(subscription.getConsumerInfo().getConsumerId());
stopConsumer.setClose(true);
origin: apache/activemq

/**
 * inform the MessageConsumer on the client to change it's prefetch
 *
 * @param newPrefetch
 */
@Override
public void updateConsumerPrefetch(int newPrefetch) {
  if (context != null && context.getConnection() != null && context.getConnection().isManageable()) {
    ConsumerControl cc = new ConsumerControl();
    cc.setConsumerId(info.getConsumerId());
    cc.setPrefetch(newPrefetch);
    context.getConnection().dispatchAsync(cc);
  }
}
origin: apache/activemq

/**
 * inform the MessageConsumer on the client to change it's prefetch
 *
 * @param newPrefetch
 */
@Override
public void updateConsumerPrefetch(int newPrefetch) {
  if (context != null && context.getConnection() != null && context.getConnection().isManageable()) {
    ConsumerControl cc = new ConsumerControl();
    cc.setConsumerId(info.getConsumerId());
    cc.setPrefetch(newPrefetch);
    context.getConnection().dispatchAsync(cc);
  }
}
origin: org.apache.activemq/activemq-client

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: org.apache.activemq/activemq-all

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: org.apache.activemq/activemq-all

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: org.apache.activemq/activemq-all

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: org.apache.activemq/activemq-client

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: org.apache.activemq/activemq-client

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
origin: org.apache.activemq/activemq-client

/**
 * @return a new object instance
 */
public DataStructure createObject() {
  return new ConsumerControl();
}
org.apache.activemq.commandConsumerControl<init>

Popular methods of ConsumerControl

  • setConsumerId
  • setPrefetch
  • setDestination
  • getConsumerId
  • getPrefetch
  • getDestination
  • setClose
  • isClose
  • isFlush
  • isStart
  • isStop
  • setFlush
  • isStop,
  • setFlush,
  • setStart,
  • setStop

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top plugins for Android Studio
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