Package tigase.xmpp.impl
Class LastActivityAbstract
java.lang.Object
tigase.xmpp.XMPPProcessor
tigase.xmpp.impl.annotation.AnnotatedXMPPProcessor
tigase.xmpp.impl.LastActivityAbstract
- All Implemented Interfaces:
Comparable<XMPPImplIfc>,XMPPImplIfc,XMPPProcessorConcurrencyAwareIfc,XMPPProcessorIfc
- Direct Known Subclasses:
LastActivityMarker
public abstract class LastActivityAbstract
extends AnnotatedXMPPProcessor
implements XMPPProcessorIfc
Implementation of XEP-0012: Last Activity.
- Author:
- bmalkow
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String[]static final String[]protected static final StringFields 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 TypeMethodDescriptionprotected static longgetLastActivity(NonAuthUserRepository repo, BareJID requestedJid) static longgetLastActivity(XMPPResourceConnection session, boolean global) protected static longgetLastActivity(XMPPResourceConnection session, Packet packet) getPresence(NonAuthUserRepository repo, BareJID requestedJid) protected static StringgetShow(NonAuthUserRepository repo, BareJID requestedJid) protected static StringgetShow(XMPPResourceConnection session) protected static StringgetStatus(NonAuthUserRepository repo, BareJID requestedJid) protected static StringgetStatus(XMPPResourceConnection session) protected static StringgetType(NonAuthUserRepository repo, BareJID requestedJid) protected static StringgetType(XMPPResourceConnection session) protected static voidpersistLastActivity(XMPPResourceConnection session, Element presence) 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface tigase.xmpp.XMPPImplIfc
canHandle, concurrentQueuesNo, getComponentInfo, getStatistics, id, init, supDiscoFeatures, supElementNamePaths, supNamespaces, supStreamFeatures, supTypesMethods inherited from interface tigase.xmpp.XMPPProcessorIfc
process
-
Field Details
-
XMLNS
- See Also:
-
LAST_ACTIVITY_KEY
- See Also:
-
LAST_STATUS_KEY
- See Also:
-
LAST_SHOW_KEY
- See Also:
-
LAST_PRESENCE_KEY
- See Also:
-
STATUS_PATH
-
SHOW_PATH
-
-
Constructor Details
-
LastActivityAbstract
public LastActivityAbstract()
-
-
Method Details
-
getLastActivity
protected static long getLastActivity(NonAuthUserRepository repo, BareJID requestedJid) throws UserNotFoundException - Throws:
UserNotFoundException
-
getLastActivity
-
getLastActivity
-
getStatus
-
getShow
-
getShow
protected static String getShow(NonAuthUserRepository repo, BareJID requestedJid) throws UserNotFoundException - Throws:
UserNotFoundException
-
getType
-
getType
protected static String getType(NonAuthUserRepository repo, BareJID requestedJid) throws UserNotFoundException - Throws:
UserNotFoundException
-
getPresence
protected Optional<Element> getPresence(NonAuthUserRepository repo, BareJID requestedJid) throws UserNotFoundException - Throws:
UserNotFoundException
-
getStatus
protected static String getStatus(NonAuthUserRepository repo, BareJID requestedJid) throws UserNotFoundException - Throws:
UserNotFoundException
-
persistLastActivity
-