public abstract static class SmackFuture.InternalProcessStanzaSmackFuture<V,E extends java.lang.Exception> extends SmackFuture.InternalSmackFuture<V,E> implements StanzaListener, ExceptionCallback<E>
SmackFuture.InternalProcessStanzaSmackFuture<V,E extends java.lang.Exception>, SmackFuture.InternalSmackFuture<V,E extends java.lang.Exception>, SmackFuture.SimpleInternalProcessStanzaSmackFuture<V,E extends java.lang.Exception>, SmackFuture.SocketFutureexception, result| Constructor and Description |
|---|
InternalProcessStanzaSmackFuture() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
handleStanza(Stanza stanza) |
protected abstract boolean |
isNonFatalException(E exception)
This method checks if the given exception is not fatal.
|
void |
processException(E exception) |
void |
processStanza(Stanza stanza)
Wrapper method for
handleStanza(Stanza). |
setException, setResultcancel, from, futureWait, futureWait, get, get, getOrThrow, isCancelled, isDone, maybeInvokeCallbacks, onError, onSuccessprotected abstract boolean isNonFatalException(E exception)
false,
then the future will automatically set the given exception as failure reason and notify potential waiting
threads.exception - the exception to check.true if the exception is not fatal, false otherwise.protected abstract void handleStanza(Stanza stanza)
public final void processException(E exception)
processException in interface ExceptionCallback<E extends java.lang.Exception>public final void processStanza(Stanza stanza)
handleStanza(Stanza). Note that this method is synchronized.processStanza in interface StanzaListenerstanza - the stanza to process.