|
Openfire 3.6.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.container.BasicModule org.jivesoftware.openfire.OfflineMessageStrategy
public class OfflineMessageStrategy
Controls what is done with offline messages.
Nested Class Summary | |
---|---|
static class |
OfflineMessageStrategy.Type
Strategy types. |
Constructor Summary | |
---|---|
OfflineMessageStrategy()
|
Method Summary | |
---|---|
static void |
addListener(OfflineMessageListener listener)
Registers a listener to receive events. |
int |
getQuota()
|
OfflineMessageStrategy.Type |
getType()
|
void |
initialize(XMPPServer server)
Initializes the basic module. |
static void |
removeListener(OfflineMessageListener listener)
Unregisters a listener to receive events. |
void |
setQuota(int quota)
|
void |
setType(OfflineMessageStrategy.Type type)
|
void |
storeOffline(Message message)
|
Methods inherited from class org.jivesoftware.openfire.container.BasicModule |
---|
destroy, getName, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OfflineMessageStrategy()
Method Detail |
---|
public int getQuota()
public void setQuota(int quota)
public OfflineMessageStrategy.Type getType()
public void setType(OfflineMessageStrategy.Type type)
public void storeOffline(Message message)
public static void addListener(OfflineMessageListener listener)
listener
- the listener.public static void removeListener(OfflineMessageListener listener)
listener
- the listener.public void initialize(XMPPServer server)
BasicModule
Initializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize
in interface Module
initialize
in class BasicModule
server
- the server hosting this module.
|
Openfire 3.6.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |