Package org.jivesoftware.smackx.pubsub
Class Node.ItemEventTranslator
- java.lang.Object
-
- org.jivesoftware.smackx.pubsub.Node.ItemEventTranslator
-
- All Implemented Interfaces:
StanzaListener
- Enclosing class:
- Node
public static class Node.ItemEventTranslator extends java.lang.Object implements StanzaListener
This class translates low level item publication events into api level objects for user consumption.
-
-
Constructor Summary
Constructors Constructor Description ItemEventTranslator(ItemEventListener eventListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processStanza(Stanza packet)
Process the next stanza sent to this stanza listener.
-
-
-
Constructor Detail
-
ItemEventTranslator
public ItemEventTranslator(ItemEventListener eventListener)
-
-
Method Detail
-
processStanza
public void processStanza(Stanza packet)
Description copied from interface:StanzaListener
Process the next stanza sent to this stanza listener.If this listener is synchronous, then a single thread is responsible for invoking all listeners, so it's very important that implementations of this method not block for any extended period of time.
- Specified by:
processStanza
in interfaceStanzaListener
- Parameters:
packet
- the stanza to process.
-
-