tigase.server.amp
public class MsgRepository extends Object implements MsgRepositoryIfc
| Constructor and Description |
|---|
MsgRepository() |
| Modifier and Type | Method and Description |
|---|---|
static MsgRepository |
getInstance(String id_string)
Method description
|
tigase.xml.Element |
getMessageExpired(long time,
boolean delete)
Method description
|
void |
initRepository(String conn_str,
Map<String,String> map)
Method description
|
Queue<tigase.xml.Element> |
loadMessagesToJID(tigase.xmpp.JID to,
boolean delete)
Method description
|
void |
storeMessage(tigase.xmpp.JID from,
tigase.xmpp.JID to,
Date expired,
tigase.xml.Element msg)
Method description
|
public static MsgRepository getInstance(String id_string)
id_string - public tigase.xml.Element getMessageExpired(long time,
boolean delete)
getMessageExpired in interface MsgRepositoryIfctime - delete - public void initRepository(String conn_str, Map<String,String> map) throws SQLException
conn_str - map - SQLExceptionpublic Queue<tigase.xml.Element> loadMessagesToJID(tigase.xmpp.JID to, boolean delete) throws UserNotFoundException
loadMessagesToJID in interface MsgRepositoryIfcto - delete - UserNotFoundExceptionpublic void storeMessage(tigase.xmpp.JID from,
tigase.xmpp.JID to,
Date expired,
tigase.xml.Element msg)
throws UserNotFoundException
storeMessage in interface MsgRepositoryIfcfrom - to - expired - msg - UserNotFoundExceptionCopyright © 2013 Tigase. All rights reserved.