-
- All Superinterfaces:
- Destination
- All Known Subinterfaces:
- TemporaryTopic
public interface Topic extends Destination
ATopic
object encapsulates a provider-specific topic name. It is the way a client specifies the identity of a topic to JMS API methods. For those methods that use aDestination
as a parameter, aTopic
object may used as an argument . For example, a Topic can be used to create aMessageConsumer
and aMessageProducer
by calling:-
Session.CreateConsumer(Destination destination)
-
Session.CreateProducer(Destination destination)
Many publish/subscribe (pub/sub) providers group topics into hierarchies and provide various options for subscribing to parts of the hierarchy. The JMS API places no restriction on what a
Topic
object represents. It may be a leaf in a topic hierarchy, or it may be a larger part of the hierarchy.The organization of topics and the granularity of subscriptions to them is an important part of a pub/sub application's architecture. The JMS API does not specify a policy for how this should be done. If an application takes advantage of a provider-specific topic-grouping mechanism, it should document this. If the application is installed using a different provider, it is the job of the administrator to construct an equivalent topic architecture and create equivalent
Topic
objects.- Since:
- JMS 1.0
- Version:
- JMS 2.0
- See Also:
Session.createConsumer(Destination)
,Session.createProducer(Destination)
,TopicSession.createTopic(String)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description String
getTopicName()
Gets the name of this topic.String
toString()
Returns a string representation of this object.
-
-
-
Method Detail
-
getTopicName
String getTopicName() throws JMSException
Gets the name of this topic.Clients that depend upon the name are not portable.
- Returns:
- the topic name
- Throws:
JMSException
- if the JMS provider implementation ofTopic
fails to return the topic name due to some internal error.
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/jms/Topic.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.