本文整理汇总了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;
}
示例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;
}
}
示例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;
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
示例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;
}
}
示例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;
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}