public class EventPublisherModule extends AbstractEventBusModule
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
context, log| Constructor and Description |
|---|
EventPublisherModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRegistration()
Called after registration.
|
String[] |
getFeatures()
Returns XMPP features offered by module.
|
Criteria |
getModuleCriteria()
Returns critera used by Component to select module to handle incoming
stanza.
|
void |
process(Packet packet)
Process incoming stanza.
|
void |
publishEvent(Element event) |
void |
publishEvent(String name,
String xmlns,
Element event) |
void |
publishEvent(String name,
String xmlns,
Element event,
Collection<Subscription> subscribers) |
void |
unregisterModule()
Called before module is unregistered.
|
isClusteredEventBus, nextStanzaIDbeforeRegister, fireEvent, setContext, write, writepublic static final String ID
public void afterRegistration()
InitializingModuleafterRegistration in interface InitializingModuleafterRegistration in class AbstractModule<EventBusContext>public String[] getFeatures()
Modulenull.public Criteria getModuleCriteria()
Modulepublic void process(Packet packet) throws ComponentException, TigaseStringprepException
Modulepacket - received stanza.ComponentException - if stanza can't be processed correctly. ComponentException is
converted to error stanza and returned to stanza sender.TigaseStringprepException - if there was an error during stringprep processing.public void publishEvent(Element event)
public void publishEvent(String name, String xmlns, Element event, Collection<Subscription> subscribers)
public void unregisterModule()
InitializingModuleunregisterModule in interface InitializingModuleunregisterModule in class AbstractModule<EventBusContext>Copyright © 2022 "Tigase, Inc.". All rights reserved.