Package tigase.xmpp.impl.push
Class PushPresence
java.lang.Object
tigase.xmpp.XMPPProcessor
tigase.xmpp.impl.annotation.AnnotatedXMPPProcessor
tigase.xmpp.impl.push.PushPresence
- All Implemented Interfaces:
Comparable<XMPPImplIfc>,Initializable,UnregisterAware,XMPPImplIfc,XMPPProcessorConcurrencyAwareIfc
@Bean(name="push-presence",
parent=SessionManager.class,
active=false)
public class PushPresence
extends AnnotatedXMPPProcessor
implements Initializable, UnregisterAware
-
Field Summary
Fields inherited from class tigase.xmpp.XMPPProcessor
ALL_NAMES, ALL_PATHS, cmpInfoFields inherited from interface tigase.xmpp.XMPPImplIfc
CLIENT_XMLNS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod called before bean unregister.voidbroadcastPresenceFromPushDevices(BareJID userJid, boolean hasPushDevices, Consumer<Packet> packetConsumer) voidvoidMethod will be called, when bean will be created, configured and ready to use.protected booleanisPushAvailable(BareJID userJid) voidprocessPresenceProbe(JID recipient, JID sender, Consumer<Packet> packetConsumer) voidprocessPresenceToOffline(JID recipient, JID sender, StanzaType stanzaType, Consumer<Packet> packetConsumer) voidpushAvailabilityChanged(BareJID userJid, boolean newValue, Consumer<Packet> packetConsumer) voidsetEventBus(EventBus eventBus) protected voidsetRosterUtil(RosterAbstract rosterUtil) Methods inherited from class tigase.xmpp.impl.annotation.AnnotatedXMPPProcessor
id, supDiscoFeatures, supElementNamePaths, supNamespaces, supStreamFeatures, supTypesMethods inherited from class tigase.xmpp.XMPPProcessor
canHandle, compareTo, concurrentQueuesNo, getComponentInfo, getInstance, getQueueSize, getStatistics, getThreadsNo, init, toString
-
Constructor Details
-
PushPresence
public PushPresence()
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:InitializableMethod will be called, when bean will be created, configured and ready to use.- Specified by:
initializein interfaceInitializable
-
beforeUnregister
public void beforeUnregister()Description copied from interface:UnregisterAwareMethod called before bean unregister.- Specified by:
beforeUnregisterin interfaceUnregisterAware
-
setRosterUtil
-
getEventBus
-
setEventBus
-
isPushAvailable
- Throws:
TigaseDBException
-
processPresenceToOffline
public void processPresenceToOffline(JID recipient, JID sender, StanzaType stanzaType, Consumer<Packet> packetConsumer) -
processPresenceProbe
-
broadcastPresenceFromPushDevices
-
pushAvailabilityChanged
-
handleRosterModified
-