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 MsgRepositoryIfc
time
- delete
- public void initRepository(String conn_str, Map<String,String> map) throws SQLException
conn_str
- map
- SQLException
public Queue<tigase.xml.Element> loadMessagesToJID(tigase.xmpp.JID to, boolean delete) throws UserNotFoundException
loadMessagesToJID
in interface MsgRepositoryIfc
to
- delete
- Queue
of Element
objects representing stored
payloads for the given user's JID
UserNotFoundException
public void storeMessage(tigase.xmpp.JID from, tigase.xmpp.JID to, Date expired, tigase.xml.Element msg) throws UserNotFoundException
storeMessage
in interface MsgRepositoryIfc
from
- to
- expired
- msg
- UserNotFoundException
Copyright © 2014 "Tigase, Inc.". All rights reserved.