public class UndeliveredStanzaManager extends Object implements EventHandler
| Modifier and Type | Class and Description |
|---|---|
static interface |
UndeliveredStanzaManager.PersistenceMechanism
An injectable interface which allows applications to define custom
mechanism to persist undelivered stanzas.
|
| Constructor and Description |
|---|
UndeliveredStanzaManager(UndeliveredStanzaManager.PersistenceMechanism persistenceMechanism) |
| Modifier and Type | Method and Description |
|---|---|
List<Stanza> |
getAllUndeliveredStanzas()
Read all the stanzas from persistent store and delete them.
|
void |
handle(Event event) |
void |
persistStanza(Stanza stanza)
Persist stanza to determine delivery of stanza.
|
void |
removeStanza(int stanzaCount)
Remove given number of stanza packets
|
void |
truncateUndeliverStanzas()
Delete All un delivered stanzas from store.
|
public UndeliveredStanzaManager(UndeliveredStanzaManager.PersistenceMechanism persistenceMechanism)
public void handle(Event event)
handle in interface EventHandlerpublic void persistStanza(Stanza stanza)
stanza - Stanza packet instance to be persistedpublic void removeStanza(int stanzaCount)
stanzaCount - number of stanza packets to be removedpublic List<Stanza> getAllUndeliveredStanzas()
public void truncateUndeliverStanzas()
Copyright © 2019. All rights reserved.