下面列出了javax.jms.JMSRuntimeException#initCause ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@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;
}
@Override
public int getDeliveryMode() {
try {
return producer.getDeliveryMode();
} catch (JMSException e) {
JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
e2.initCause(e);
throw e2;
}
}
@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;
}
@Override
public int getPriority() {
try {
return producer.getPriority();
} catch (JMSException e) {
JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
e2.initCause(e);
throw e2;
}
}
@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;
}
}
@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;
}
}
@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;
}
}
@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;
}
@Override
public int getDeliveryMode() {
try {
return producer.getDeliveryMode();
} catch (final JMSException e) {
final JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
e2.initCause(e);
throw e2;
}
}
@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;
}
@Override
public int getPriority() {
try {
return producer.getPriority();
} catch (final JMSException e) {
final JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
e2.initCause(e);
throw e2;
}
}
@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;
}
}
@Override
public long getTimeToLive() {
try {
return producer.getTimeToLive();
} catch (final JMSException e) {
final JMSRuntimeException e2 = new JMSRuntimeException(e.getMessage());
e2.initCause(e);
throw e2;
}
}
@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;
}
}