com.github.marschall.jakartajmsadapter.JakartaTopicSubscriber Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jakarta-jms-adapter Show documentation
Show all versions of jakarta-jms-adapter Show documentation
Adapts a javax.jms JMS provider to a jakarta.jms JMS provider.
The newest version!
package com.github.marschall.jakartajmsadapter;
import jakarta.jms.JMSException;
import jakarta.jms.Topic;
import jakarta.jms.TopicSubscriber;
final class JakartaTopicSubscriber extends JakartaMessageConsumer implements TopicSubscriber {
private final javax.jms.TopicSubscriber javaxTopicSubscriber;
JakartaTopicSubscriber(javax.jms.TopicSubscriber javaxTopicSubscriber) {
super(javaxTopicSubscriber);
this.javaxTopicSubscriber = javaxTopicSubscriber;
}
@Override
public Topic getTopic() throws JMSException {
try {
return new JakartaTopic(this.javaxTopicSubscriber.getTopic());
} catch (javax.jms.JMSException e) {
throw JMSExceptionUtil.adaptException(e);
}
}
@Override
public boolean getNoLocal() throws JMSException {
try {
return this.javaxTopicSubscriber.getNoLocal();
} catch (javax.jms.JMSException e) {
throw JMSExceptionUtil.adaptException(e);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy