当前位置: 首页>>代码示例>>Java>>正文


Java JMSRuntimeException.initCause方法代码示例

本文整理汇总了Java中javax.jms.JMSRuntimeException.initCause方法的典型用法代码示例。如果您正苦于以下问题:Java JMSRuntimeException.initCause方法的具体用法?Java JMSRuntimeException.initCause怎么用?Java JMSRuntimeException.initCause使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.jms.JMSRuntimeException的用法示例。


在下文中一共展示了JMSRuntimeException.initCause方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setDeliveryMode

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public JMSProducer setDeliveryMode(int deliveryMode) {
   try {
      producer.setDeliveryMode(deliveryMode);
   } catch (JMSException e) {
      JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
      e2.initCause(e);
      throw e2;
   }
   return this;
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:12,代码来源:ActiveMQJMSProducer.java

示例2: getDeliveryMode

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public int getDeliveryMode() {
   try {
      return producer.getDeliveryMode();
   } catch (JMSException e) {
      JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
      e2.initCause(e);
      throw e2;
   }
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:11,代码来源:ActiveMQJMSProducer.java

示例3: setPriority

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public JMSProducer setPriority(int priority) {
   try {
      producer.setPriority(priority);
   } catch (JMSException e) {
      JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
      e2.initCause(e);
      throw e2;
   }
   return this;
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:12,代码来源:ActiveMQJMSProducer.java

示例4: getPriority

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public int getPriority() {
   try {
      return producer.getPriority();
   } catch (JMSException e) {
      JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
      e2.initCause(e);
      throw e2;
   }
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:11,代码来源:ActiveMQJMSProducer.java

示例5: setTimeToLive

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public JMSProducer setTimeToLive(long timeToLive) {
   try {
      producer.setTimeToLive(timeToLive);
      return this;
   } catch (JMSException e) {
      JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
      e2.initCause(e);
      throw e2;
   }
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:12,代码来源:ActiveMQJMSProducer.java

示例6: getTimeToLive

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public long getTimeToLive() {
   long timeToLive = 0;
   try {
      timeToLive = producer.getTimeToLive();
      return timeToLive;
   } catch (JMSException e) {
      JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
      e2.initCause(e);
      throw e2;
   }
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:13,代码来源:ActiveMQJMSProducer.java

示例7: setDeliveryDelay

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public JMSProducer setDeliveryDelay(long deliveryDelay) {
   try {
      producer.setDeliveryDelay(deliveryDelay);
      return this;
   } catch (JMSException e) {
      JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
      e2.initCause(e);
      throw e2;
   }
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:12,代码来源:ActiveMQJMSProducer.java

示例8: setDeliveryMode

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public JMSProducer setDeliveryMode(final int deliveryMode) {
    try {
        producer.setDeliveryMode(deliveryMode);
    } catch (final JMSException e) {
        final JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
        e2.initCause(e);
        throw e2;
    }
    return this;
}
 
开发者ID:apache,项目名称:tomee,代码行数:12,代码来源:JMSProducerImpl.java

示例9: getDeliveryMode

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public int getDeliveryMode() {
    try {
        return producer.getDeliveryMode();
    } catch (final JMSException e) {
        final JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
        e2.initCause(e);
        throw e2;
    }
}
 
开发者ID:apache,项目名称:tomee,代码行数:11,代码来源:JMSProducerImpl.java

示例10: setPriority

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public JMSProducer setPriority(final int priority) {
    try {
        producer.setPriority(priority);
    } catch (final JMSException e) {
        final JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
        e2.initCause(e);
        throw e2;
    }
    return this;
}
 
开发者ID:apache,项目名称:tomee,代码行数:12,代码来源:JMSProducerImpl.java

示例11: getPriority

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public int getPriority() {
    try {
        return producer.getPriority();
    } catch (final JMSException e) {
        final JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
        e2.initCause(e);
        throw e2;
    }
}
 
开发者ID:apache,项目名称:tomee,代码行数:11,代码来源:JMSProducerImpl.java

示例12: setTimeToLive

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public JMSProducer setTimeToLive(final long timeToLive) {
    try {
        producer.setTimeToLive(timeToLive);
        return this;
    } catch (final JMSException e) {
        final JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
        e2.initCause(e);
        throw e2;
    }
}
 
开发者ID:apache,项目名称:tomee,代码行数:12,代码来源:JMSProducerImpl.java

示例13: getTimeToLive

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public long getTimeToLive() {
    try {
        return producer.getTimeToLive();
    } catch (final JMSException e) {
        final JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
        e2.initCause(e);
        throw e2;
    }
}
 
开发者ID:apache,项目名称:tomee,代码行数:11,代码来源:JMSProducerImpl.java

示例14: setDeliveryDelay

import javax.jms.JMSRuntimeException; //导入方法依赖的package包/类
@Override
public JMSProducer setDeliveryDelay(final long deliveryDelay) {
    try {
        producer.setDeliveryDelay(deliveryDelay);
        return this;
    } catch (final JMSException e) {
        JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
        e2.initCause(e);
        throw e2;
    }
}
 
开发者ID:apache,项目名称:tomee,代码行数:12,代码来源:JMSProducerImpl.java


注:本文中的javax.jms.JMSRuntimeException.initCause方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。