private void notifyConsumerOfShutdown(
     String consumerTag, Consumer consumer, ShutdownSignalException signal) {
   try {
     consumer.handleShutdownSignal(consumerTag, signal);
   } catch (Throwable ex) {
     connection
         .getExceptionHandler()
         .handleConsumerException(channel, ex, consumer, consumerTag, "handleShutdownSignal");
   }
 }
Exemplo n.º 2
0
 public AMQTopic(AMQConnection conn, String routingKey) {
   this(conn.getDefaultTopicExchangeName(), new AMQShortString(routingKey));
 }
Exemplo n.º 3
0
 public static AMQShortString getDurableTopicQueueName(
     String subscriptionName, AMQConnection connection) throws JMSException {
   return new AMQShortString(connection.getClientID() + ":" + subscriptionName);
 }