Tabnine Logo
Destination.send
Code IndexAdd Tabnine to your IDE (free)

How to use
send
method
in
org.apache.activemq.broker.region.Destination

Best Java code snippets using org.apache.activemq.broker.region.Destination.send (Showing top 20 results out of 315)

origin: apache/activemq

@Override
public void send(ProducerBrokerExchange context, Message messageSend) throws Exception {
  next.send(context, messageSend);
}
origin: apache/activemq

  @Override
  public void send(ProducerBrokerExchange context, Message messageSend) throws Exception {
    for (Iterator<Destination> iter = destinations.iterator(); iter.hasNext();) {
      Destination destination = iter.next();
      destination.send(context, messageSend);
    }
  }
};
origin: apache/activemq

  @Override
  public void run() {
    try {
      if (exceptionAtomicReference.get() == null) {
        dest.send(context, copy(message, dest.getActiveMQDestination()));
      }
    } catch (ResourceAllocationException e) {
      if (!dropMessageOnResourceLimit) {
        exceptionAtomicReference.set(e);
      }
    } catch (Exception e) {
      exceptionAtomicReference.set(e);
    } finally {
      concurrent.countDown();
    }
  }
});
origin: apache/activemq

/**
 * Sends a message to the given destination which may be a wildcard
 *
 * @param context broker context
 * @param message message to send
 * @param destination possibly wildcard destination to send the message to
 * @throws Exception on error
 */
protected void send(ProducerBrokerExchange context, Message message, ActiveMQDestination destination) throws Exception {
  Broker broker = context.getConnectionContext().getBroker();
  Set<Destination> destinations = broker.getDestinations(destination);
  for (Destination dest : destinations) {
    dest.send(context, message.copy());
  }
}
origin: apache/activemq

if (shouldDispatch(broker, message, dest)) {
  try {
    dest.send(context, copy(message, dest.getActiveMQDestination()));
  } catch (ResourceAllocationException e) {
    if (!dropMessageOnResourceLimit) {
origin: apache/activemq

  public void send(ProducerBrokerExchange context, Message message) throws Exception {
    message.setDestination(mirrorDestination.getActiveMQDestination());
    mirrorDestination.send(context, message);
    if (isCopyMessage()) {
      message = message.copy();
    }
    message.setDestination(destination.getActiveMQDestination());
    message.setMemoryUsage(null); // set this to null so that it will use the queue memoryUsage instance instead of the topic.
    super.send(context, message);
  }
};
origin: apache/activemq

@Override
public void send(final ProducerBrokerExchange producerExchange, Message messageSend) throws Exception {
  final ConnectionContext context = producerExchange.getConnectionContext();
  if (producerExchange.isMutable() || producerExchange.getRegionDestination() == null) {
    final Destination regionDestination = lookup(context, messageSend.getDestination(),false);
    producerExchange.setRegionDestination(regionDestination);
  }
  producerExchange.getRegionDestination().send(producerExchange, messageSend);
  if (producerExchange.getProducerState() != null && producerExchange.getProducerState().getInfo() != null){
    producerExchange.getProducerState().getInfo().incrementSentCount();
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public void send(ProducerBrokerExchange context, Message messageSend) throws Exception {
  next.send(context, messageSend);
}
origin: org.apache.activemq/activemq-all

@Override
public void send(ProducerBrokerExchange context, Message messageSend) throws Exception {
  next.send(context, messageSend);
}
origin: org.apache.activemq/activemq-broker

  @Override
  public void send(ProducerBrokerExchange context, Message messageSend) throws Exception {
    for (Iterator<Destination> iter = destinations.iterator(); iter.hasNext();) {
      Destination destination = iter.next();
      destination.send(context, messageSend);
    }
  }
};
origin: org.apache.activemq/activemq-osgi

  @Override
  public void send(ProducerBrokerExchange context, Message messageSend) throws Exception {
    for (Iterator<Destination> iter = destinations.iterator(); iter.hasNext();) {
      Destination destination = iter.next();
      destination.send(context, messageSend);
    }
  }
};
origin: org.apache.activemq/activemq-all

  @Override
  public void send(ProducerBrokerExchange context, Message messageSend) throws Exception {
    for (Iterator<Destination> iter = destinations.iterator(); iter.hasNext();) {
      Destination destination = iter.next();
      destination.send(context, messageSend);
    }
  }
};
origin: org.apache.activemq/activemq-all

  @Override
  public void run() {
    try {
      if (exceptionAtomicReference.get() == null) {
        dest.send(context, copy(message, dest.getActiveMQDestination()));
      }
    } catch (Exception e) {
      exceptionAtomicReference.set(e);
    } finally {
      concurrent.countDown();
    }
  }
});
origin: org.apache.activemq/activemq-broker

  @Override
  public void run() {
    try {
      if (exceptionAtomicReference.get() == null) {
        dest.send(context, copy(message, dest.getActiveMQDestination()));
      }
    } catch (Exception e) {
      exceptionAtomicReference.set(e);
    } finally {
      concurrent.countDown();
    }
  }
});
origin: pierre/meteo

public void send(final ProducerBrokerExchange producerExchange, Message messageSend) throws Exception {
  final ConnectionContext context = producerExchange.getConnectionContext();
  if (producerExchange.isMutable() || producerExchange.getRegionDestination() == null) {
    final Destination regionDestination = lookup(context, messageSend.getDestination(),false);
    producerExchange.setRegionDestination(regionDestination);
  }
  producerExchange.getRegionDestination().send(producerExchange, messageSend);
}
origin: org.apache.activemq/activemq-broker

  public void send(ProducerBrokerExchange context, Message message) throws Exception {
    message.setDestination(mirrorDestination.getActiveMQDestination());
    mirrorDestination.send(context, message);
    if (isCopyMessage()) {
      message = message.copy();
    }
    message.setDestination(destination.getActiveMQDestination());
    message.setMemoryUsage(null); // set this to null so that it will use the queue memoryUsage instance instead of the topic.
    super.send(context, message);
  }
};
origin: org.apache.activemq/activemq-all

  public void send(ProducerBrokerExchange context, Message message) throws Exception {
    message.setDestination(mirrorDestination.getActiveMQDestination());
    mirrorDestination.send(context, message);
    if (isCopyMessage()) {
      message = message.copy();
    }
    message.setDestination(destination.getActiveMQDestination());
    message.setMemoryUsage(null); // set this to null so that it will use the queue memoryUsage instance instead of the topic.
    super.send(context, message);
  }
};
origin: org.apache.activemq/activemq-osgi

  public void send(ProducerBrokerExchange context, Message message) throws Exception {
    message.setDestination(mirrorDestination.getActiveMQDestination());
    mirrorDestination.send(context, message);
    if (isCopyMessage()) {
      message = message.copy();
    }
    message.setDestination(destination.getActiveMQDestination());
    message.setMemoryUsage(null); // set this to null so that it will use the queue memoryUsage instance instead of the topic.
    super.send(context, message);
  }
};
origin: org.apache.activemq/activemq-broker

@Override
public void send(final ProducerBrokerExchange producerExchange, Message messageSend) throws Exception {
  final ConnectionContext context = producerExchange.getConnectionContext();
  if (producerExchange.isMutable() || producerExchange.getRegionDestination() == null) {
    final Destination regionDestination = lookup(context, messageSend.getDestination(),false);
    producerExchange.setRegionDestination(regionDestination);
  }
  producerExchange.getRegionDestination().send(producerExchange, messageSend);
  if (producerExchange.getProducerState() != null && producerExchange.getProducerState().getInfo() != null){
    producerExchange.getProducerState().getInfo().incrementSentCount();
  }
}
origin: org.apache.activemq/activemq-all

@Override
public void send(final ProducerBrokerExchange producerExchange, Message messageSend) throws Exception {
  final ConnectionContext context = producerExchange.getConnectionContext();
  if (producerExchange.isMutable() || producerExchange.getRegionDestination() == null) {
    final Destination regionDestination = lookup(context, messageSend.getDestination(),false);
    producerExchange.setRegionDestination(regionDestination);
  }
  producerExchange.getRegionDestination().send(producerExchange, messageSend);
  if (producerExchange.getProducerState() != null && producerExchange.getProducerState().getInfo() != null){
    producerExchange.getProducerState().getInfo().incrementSentCount();
  }
}
org.apache.activemq.broker.regionDestinationsend

Popular methods of Destination

  • getConsumers
  • getDestinationStatistics
  • getName
  • getActiveMQDestination
  • browse
  • removeSubscription
  • acknowledge
  • addProducer
  • addSubscription
  • dispose
  • fastProducer
    Called to notify a producer is too fast
  • gc
  • fastProducer,
  • gc,
  • getBlockedProducerWarningInterval,
  • getCursorMemoryHighWaterMark,
  • getDeadLetterStrategy,
  • getMaxAuditDepth,
  • getMaxBrowsePageSize,
  • getMaxPageSize,
  • getMaxProducersToAudit,
  • getMemoryUsage

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • BoxLayout (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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