public class ResponseManager extends Object
| 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(Context context) |
| 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 ResponseManager(Context context)
public void checkTimeouts()
protected Map<String,ResponseManager.Entry> getHandlers()
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 - callbackCopyright © 2018 "Tigase, Inc.". All rights reserved.