public interface IQResultListener
IQRouter#addIQResultListener(String, IQResultListener) to add a new listener that
will process the answer to the IQ packet being sent. The listener will automatically be
removed from the IQRouter as soon as a reply for the sent IQ packet is received. The
reply can be of type RESULT or ERROR.| Modifier and Type | Method and Description |
|---|---|
void |
answerTimeout(String packetId)
Notification method indicating that a predefined time has passed without
receiving answer to a previously sent IQ packet.
|
void |
receivedAnswer(IQ packet)
Notification method indicating that a previously sent IQ packet has been answered.
|
void receivedAnswer(IQ packet)
packet - the IQ packet answering a previously sent IQ packet.void answerTimeout(String packetId)
packetId - The packet id of a previously sent IQ packet that wasn't answered.Copyright © 2009–2017 Ignite Realtime. All rights reserved.