public class OfflineMessageStrategy extends BasicModule implements ServerFeaturesProvider
Modifier and Type | Class and Description |
---|---|
static class |
OfflineMessageStrategy.Type
Strategy types.
|
Constructor and Description |
---|
OfflineMessageStrategy() |
Modifier and Type | Method and Description |
---|---|
static void |
addListener(OfflineMessageListener listener)
Registers a listener to receive events.
|
Iterator<String> |
getFeatures()
Returns an Iterator (of String) with the supported features by the server.
|
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(org.xmpp.packet.Message message) |
destroy, getName, start, stop
public int getQuota()
public void setQuota(int quota)
public OfflineMessageStrategy.Type getType()
public void setType(OfflineMessageStrategy.Type type)
public void storeOffline(org.xmpp.packet.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.public Iterator<String> getFeatures()
ServerFeaturesProvider
getFeatures
in interface ServerFeaturesProvider
Copyright © 2003-2008 Jive Software.