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"); } }
public AMQTopic(AMQConnection conn, String routingKey) { this(conn.getDefaultTopicExchangeName(), new AMQShortString(routingKey)); }
public static AMQShortString getDurableTopicQueueName( String subscriptionName, AMQConnection connection) throws JMSException { return new AMQShortString(connection.getClientID() + ":" + subscriptionName); }