public final class PubSubManager extends Manager
This class is the entry point to work with pubsub.
You should first create a pubsub service, which allows you to work with that service. If you don’t know the service address, you can discoverPubSubServices() discover} the pubsub services hosted at your server.
It also allows you to create a Personal Eventing Service, which is a virtual pubsub service, bound to your account.
Modifier and Type | Method and Description |
---|---|
PubSubService |
createPersonalEventingService()
Creates a personal eventing service.
|
PubSubService |
createPubSubService(Jid service)
Creates a pubsub service.
|
AsyncResult<java.util.List<PubSubService>> |
discoverPubSubServices()
Discovers the publish-subscribe services for the current connection.
|
isEnabled, setEnabled
public AsyncResult<java.util.List<PubSubService>> discoverPubSubServices()
Discovers the publish-subscribe services for the current connection.
public PubSubService createPubSubService(Jid service)
Creates a pubsub service.
service
- The pubsub service address, e.g. Jid.of("pubsub.mydomain")
public PubSubService createPersonalEventingService()
Creates a personal eventing service.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.