public class ResponseManager extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ResponseManager.Entry |
| Modifier and Type | Field and Description |
|---|---|
protected static long |
DEFAULT_TIMEOUT |
protected Logger |
log |
| Constructor and Description |
|---|
ResponseManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkTimeouts() |
protected Map<String,ResponseManager.Entry> |
getHandlers() |
Runnable |
getResponseHandler(Element element,
PacketWriter writer,
SessionObject sessionObject)
Returns handler for response of sent
stanza. |
String |
registerResponseHandler(Element stanza,
Long timeout,
AsyncCallback callback)
Register callback for response of sent
stanza. |
protected static final long DEFAULT_TIMEOUT
protected final Logger log
public void checkTimeouts()
throws JaxmppException
JaxmppExceptionprotected Map<String,ResponseManager.Entry> getHandlers()
public Runnable getResponseHandler(Element element, PacketWriter writer, SessionObject sessionObject) throws JaxmppException
stanza.element - reponse stanza.writer - Packet writerXMLExceptionJaxmppExceptionpublic String registerResponseHandler(Element stanza, Long timeout, AsyncCallback callback) throws XMLException
stanza.stanza - sent stanza.timeout - timeout. After it method
onTimeout() will be
called.callback - callbackXMLExceptionCopyright © 2006–2014 Tigase. All rights reserved.