Modifier and Type | Class and Description |
---|---|
protected static class |
ResponseManager.Entry |
Modifier and Type | Field and Description |
---|---|
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(Packet element)
Returns handler for response of sent
<iq/> stanza. |
String |
registerResponseHandler(Packet stanza,
Long timeout,
AsyncCallback callback)
Register callback for response of sent
<iq/> stanza. |
public static final long DEFAULT_TIMEOUT
protected final Logger log
public void checkTimeouts()
public Runnable getResponseHandler(Packet element)
<iq/>
stanza.element
- response <iq/>
stanza.public String registerResponseHandler(Packet stanza, Long timeout, AsyncCallback callback)
<iq/>
stanza.stanza
- sent <iq/>
stanza.timeout
- timeout. After it method onTimeout() will be called.callback
- callbackprotected Map<String,ResponseManager.Entry> getHandlers()
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.