Codota Logo
ConsumerControl.getDestination
Code IndexAdd Codota to your IDE (free)

How to use
getDestination
method
in
org.apache.activemq.command.ConsumerControl

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

  • Common ways to obtain ConsumerControl
private void myMethod () {
ConsumerControl c =
  • Codota Iconnew ConsumerControl()
  • Smart code suggestions by Codota
}
origin: apache/activemq

@Override
public void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control) {
  ActiveMQDestination destination = control.getDestination();
  try {
    getRegion(destination).processConsumerControl(consumerExchange, control);
  } catch (JMSException jmse) {
    LOG.warn("unmatched destination: {}, in consumerControl: {}", destination, control);
  }
}
origin: apache/activemq

@Override
public void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control) {
  control.setDestination(convertDestination(control.getDestination()));
  super.processConsumerControl(consumerExchange, control);
}
origin: apache/activemq

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    ConsumerControl info = (ConsumerControl)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    dataOut.writeBoolean(info.isClose());
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getConsumerId(), dataOut);
    dataOut.writeInt(info.getPrefetch());
    dataOut.writeBoolean(info.isFlush());
    dataOut.writeBoolean(info.isStart());
    dataOut.writeBoolean(info.isStop());

  }
}
origin: apache/activemq

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    ConsumerControl info = (ConsumerControl)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    dataOut.writeBoolean(info.isClose());
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getConsumerId(), dataOut);
    dataOut.writeInt(info.getPrefetch());
    dataOut.writeBoolean(info.isFlush());
    dataOut.writeBoolean(info.isStart());
    dataOut.writeBoolean(info.isStop());

  }
}
origin: apache/activemq

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    ConsumerControl info = (ConsumerControl)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    dataOut.writeBoolean(info.isClose());
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getConsumerId(), dataOut);
    dataOut.writeInt(info.getPrefetch());
    dataOut.writeBoolean(info.isFlush());
    dataOut.writeBoolean(info.isStart());
    dataOut.writeBoolean(info.isStop());

  }
}
origin: apache/activemq

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    ConsumerControl info = (ConsumerControl)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getDestination(), dataOut);
    dataOut.writeBoolean(info.isClose());
    looseMarshalNestedObject(wireFormat, (DataStructure)info.getConsumerId(), dataOut);
    dataOut.writeInt(info.getPrefetch());
    dataOut.writeBoolean(info.isFlush());
    dataOut.writeBoolean(info.isStart());
    dataOut.writeBoolean(info.isStop());

  }
}
origin: apache/activemq

@Override
public void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control) {
  Subscription sub = subscriptions.get(control.getConsumerId());
  if (sub != null && sub instanceof AbstractSubscription) {
    ((AbstractSubscription) sub).setPrefetchSize(control.getPrefetch());
    if (broker.getDestinationPolicy() != null) {
      PolicyEntry entry = broker.getDestinationPolicy().getEntryFor(control.getDestination());
      if (entry != null) {
        entry.configurePrefetch(sub);
      }
    }
    LOG.debug("setting prefetch: {}, on subscription: {}; resulting value: {}", new Object[]{ control.getPrefetch(), control.getConsumerId(), sub.getConsumerInfo().getPrefetchSize()});
    try {
      lookup(consumerExchange.getConnectionContext(), control.getDestination(),false).wakeup();
    } catch (Exception e) {
      LOG.warn("failed to deliver post consumerControl dispatch-wakeup, to destination: {}", control.getDestination(), e);
    }
  }
}
origin: apache/activemq

/**
 * Write a object instance to data output stream
 *
 * @param o the instance to be marshaled
 * @param dataOut the output stream
 * @throws IOException thrown if an error occurs
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  ConsumerControl info = (ConsumerControl)o;
  tightMarshalNestedObject2(wireFormat, (DataStructure)info.getDestination(), dataOut, bs);
  bs.readBoolean();
  tightMarshalNestedObject2(wireFormat, (DataStructure)info.getConsumerId(), dataOut, bs);
  dataOut.writeInt(info.getPrefetch());
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
}
origin: apache/activemq

/**
 * Write a object instance to data output stream
 *
 * @param o the instance to be marshaled
 * @param dataOut the output stream
 * @throws IOException thrown if an error occurs
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  ConsumerControl info = (ConsumerControl)o;
  tightMarshalNestedObject2(wireFormat, (DataStructure)info.getDestination(), dataOut, bs);
  bs.readBoolean();
  tightMarshalNestedObject2(wireFormat, (DataStructure)info.getConsumerId(), dataOut, bs);
  dataOut.writeInt(info.getPrefetch());
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
}
origin: apache/activemq

/**
 * Write a object instance to data output stream
 *
 * @param o the instance to be marshaled
 * @param dataOut the output stream
 * @throws IOException thrown if an error occurs
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  ConsumerControl info = (ConsumerControl)o;
  tightMarshalNestedObject2(wireFormat, (DataStructure)info.getDestination(), dataOut, bs);
  bs.readBoolean();
  tightMarshalNestedObject2(wireFormat, (DataStructure)info.getConsumerId(), dataOut, bs);
  dataOut.writeInt(info.getPrefetch());
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
}
origin: apache/activemq

/**
 * Write a object instance to data output stream
 *
 * @param o the instance to be marshaled
 * @param dataOut the output stream
 * @throws IOException thrown if an error occurs
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  ConsumerControl info = (ConsumerControl)o;
  tightMarshalNestedObject2(wireFormat, (DataStructure)info.getDestination(), dataOut, bs);
  bs.readBoolean();
  tightMarshalNestedObject2(wireFormat, (DataStructure)info.getConsumerId(), dataOut, bs);
  dataOut.writeInt(info.getPrefetch());
  bs.readBoolean();
  bs.readBoolean();
  bs.readBoolean();
}
origin: apache/activemq

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  ConsumerControl info = (ConsumerControl)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  bs.writeBoolean(info.isClose());
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getConsumerId(), bs);
  bs.writeBoolean(info.isFlush());
  bs.writeBoolean(info.isStart());
  bs.writeBoolean(info.isStop());
  return rc + 4;
}
origin: apache/activemq

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  ConsumerControl info = (ConsumerControl)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  bs.writeBoolean(info.isClose());
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getConsumerId(), bs);
  bs.writeBoolean(info.isFlush());
  bs.writeBoolean(info.isStart());
  bs.writeBoolean(info.isStop());
  return rc + 4;
}
origin: apache/activemq

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  ConsumerControl info = (ConsumerControl)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  bs.writeBoolean(info.isClose());
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getConsumerId(), bs);
  bs.writeBoolean(info.isFlush());
  bs.writeBoolean(info.isStart());
  bs.writeBoolean(info.isStop());
  return rc + 4;
}
origin: apache/activemq

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  ConsumerControl info = (ConsumerControl)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getDestination(), bs);
  bs.writeBoolean(info.isClose());
  rc += tightMarshalNestedObject1(wireFormat, (DataStructure)info.getConsumerId(), bs);
  bs.writeBoolean(info.isFlush());
  bs.writeBoolean(info.isStart());
  bs.writeBoolean(info.isStop());
  return rc + 4;
}
origin: org.apache.activemq/activemq-broker

@Override
public void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control) {
  ActiveMQDestination destination = control.getDestination();
  try {
    getRegion(destination).processConsumerControl(consumerExchange, control);
  } catch (JMSException jmse) {
    LOG.warn("unmatched destination: {}, in consumerControl: {}", destination, control);
  }
}
origin: org.apache.activemq/activemq-all

@Override
public void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control) {
  ActiveMQDestination destination = control.getDestination();
  try {
    getRegion(destination).processConsumerControl(consumerExchange, control);
  } catch (JMSException jmse) {
    LOG.warn("unmatched destination: {}, in consumerControl: {}", destination, control);
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
public void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control) {
  ActiveMQDestination destination = control.getDestination();
  try {
    getRegion(destination).processConsumerControl(consumerExchange, control);
  } catch (JMSException jmse) {
    LOG.warn("unmatched destination: {}, in consumerControl: {}", destination, control);
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control) {
  control.setDestination(convertDestination(control.getDestination()));
  super.processConsumerControl(consumerExchange, control);
}
origin: org.apache.activemq/activemq-osgi

@Override
public void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control) {
  control.setDestination(convertDestination(control.getDestination()));
  super.processConsumerControl(consumerExchange, control);
}
org.apache.activemq.commandConsumerControlgetDestination

Popular methods of ConsumerControl

  • <init>
  • setConsumerId
  • setPrefetch
  • setDestination
  • getConsumerId
  • getPrefetch
  • setClose
  • isClose
  • isFlush
  • isStart
  • isStop
  • setFlush
  • isStop,
  • setFlush,
  • setStart,
  • setStop

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now