public interface XmppConversation
XmppConversation
abstract from the XMPP conversation type
(e.g. chat, multi user chat or sending of plain jabber messages).Modifier and Type | Method and Description |
---|---|
void |
addPacketListener(org.jivesoftware.smack.PacketListener listener)
Adds
listener to this conversation's XMPP connection. |
void |
connect()
Deprecated.
Use
connect(boolean) |
void |
connect(boolean requiresCollector)
Connect to the Jabber conversation, e.g.
|
void |
disconnect()
Disconnect from the Jabber conversation, e.g.
|
void |
dispatch(org.jivesoftware.smack.packet.Message message)
Asynchronously dispatch
message via the Jabber conversation. |
org.jivesoftware.smack.packet.Message |
receive()
Wait for a response on this conversation until a message arrives.
|
org.jivesoftware.smack.packet.Message |
receive(long timeout)
Wait for a response on this conversation until
timeout occurs. |
void |
removePacketListener(org.jivesoftware.smack.PacketListener listener)
Removes
listener from this conversation's XMPP connection. |
@Deprecated void connect() throws ConnectException
connect(boolean)
ConnectException
void connect(boolean requiresCollector) throws ConnectException
Whether
- this conversation has to keep a packetCollector internally, that buffers messages for a requester.ConnectException
void disconnect()
void dispatch(org.jivesoftware.smack.packet.Message message) throws org.jivesoftware.smack.XMPPException
message
via the Jabber conversation.org.jivesoftware.smack.XMPPException
void addPacketListener(org.jivesoftware.smack.PacketListener listener)
listener
to this conversation's XMPP connection.void removePacketListener(org.jivesoftware.smack.PacketListener listener)
listener
from this conversation's XMPP connection.org.jivesoftware.smack.packet.Message receive(long timeout)
timeout
occurs.Message
next available message or null
if timeout occurred.org.jivesoftware.smack.packet.Message receive()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.