public interface MsgRepositoryIfc extends Repository
Repository.Meta| Modifier and Type | Method and Description |
|---|---|
tigase.xml.Element |
getMessageExpired(long time,
boolean delete)
Loads head of the payloads queue which holds items that would be expired after
stated time with an option to delete them from repository after being
retrieved.
|
Queue<tigase.xml.Element> |
loadMessagesToJID(tigase.xmpp.JID to,
boolean delete)
Loads all payloads for the given user's
JID from repository. |
void |
storeMessage(tigase.xmpp.JID from,
tigase.xmpp.JID to,
Date expired,
tigase.xml.Element msg)
Saves the massage to the repository
|
initRepositorytigase.xml.Element getMessageExpired(long time,
boolean delete)
time - time in milliseconds representing time after which given
message would be considered as expireddelete - boolean parameter controlling whether messages should be
removed from repository after they retrieved.Queue<tigase.xml.Element> loadMessagesToJID(tigase.xmpp.JID to, boolean delete) throws UserNotFoundException
JID from repository.to - JID denotes address of the receiver for which payload
stored in the repository should be retrieved.delete - boolean parameter controlling whether messages should be
removed from repository after they retrieved.Queue of Element objects representing stored
payloads for the given user's JIDUserNotFoundExceptionvoid storeMessage(tigase.xmpp.JID from,
tigase.xmpp.JID to,
Date expired,
tigase.xml.Element msg)
throws UserNotFoundException
from - JID denotes address of the senderto - JID denotes address of the receiverexpired - Date object denoting expiration date of the messagemsg - Element payload of the stanza to be savedUserNotFoundExceptionCopyright © 2015 "Tigase, Inc.". All rights reserved.