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
stanza. |
String |
registerResponseHandler(Packet stanza,
Long timeout,
AsyncCallback callback)
Register callback for response of sent
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)
stanza.element
- reponse
stanza.writer
- Packet writerXMLException
public String registerResponseHandler(Packet stanza, Long timeout, AsyncCallback callback)
stanza.stanza
- sent
stanza.timeout
- timeout. After it method
onTimeout() will be
called.callback
- callbackXMLException
Copyright © 2014 "Tigase, Inc.". All rights reserved.