public abstract class PresenceStore extends Object implements Property
Modifier and Type | Field and Description |
---|---|
protected Map<BareJID,Presence> |
bestPresence |
protected tigase.jaxmpp.core.client.xmpp.modules.presence.PresenceStore.Handler |
handler |
protected Map<JID,Presence> |
presenceByJid |
protected Map<BareJID,Map<String,Presence>> |
presencesMapByBareJid |
Constructor and Description |
---|
PresenceStore() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all known presence information.
|
protected abstract Map<String,Presence> |
createResourcePresenceMap() |
Presence |
getBestPresence(BareJID jid)
Returns presence stanza with highest priority of goven bare JID.
|
Presence |
getPresence(JID jid)
Returns presence stanza of given JID.
|
Map<String,Presence> |
getPresences(BareJID jid)
Returns map of all known resources and related presences stanza of given
bare JID.
|
Class<PresenceStore> |
getPropertyClass()
Method which returns class which implements this interface which
may be used as a key to store instance of this class in JaxmppCore.
|
boolean |
isAvailable(BareJID jid) |
void |
setPresence(Presence.Show show,
String status,
Integer priority) |
protected void |
update(Presence presence) |
protected void |
updateBestPresence(Presence presence) |
protected tigase.jaxmpp.core.client.xmpp.modules.presence.PresenceStore.Handler handler
public void clear() throws JaxmppException
JaxmppException
public Presence getBestPresence(BareJID jid) throws XMLException
jid
- JID of sendernull
if not found.XMLException
public Presence getPresence(JID jid)
jid
- JID of sendernull
if not found.public Map<String,Presence> getPresences(BareJID jid)
jid
- basre JID of senderpublic Class<PresenceStore> getPropertyClass()
Property
getPropertyClass
in interface Property
public boolean isAvailable(BareJID jid) throws XMLException
XMLException
public void setPresence(Presence.Show show, String status, Integer priority) throws JaxmppException
JaxmppException
protected void update(Presence presence) throws XMLException
XMLException
protected void updateBestPresence(Presence presence) throws XMLException
XMLException
Copyright © 2006–2023 Tigase. All rights reserved.