public abstract static class SmackFuture.InternalProcessStanzaSmackFuture<V,E extends Exception> extends SmackFuture.InternalSmackFuture<V,E> implements StanzaListener, ExceptionCallback<E>
SmackFuture.InternalProcessStanzaSmackFuture<V,E extends Exception>, SmackFuture.InternalSmackFuture<V,E extends Exception>, SmackFuture.SimpleInternalProcessStanzaSmackFuture<V,E extends Exception>
exception, 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, setResult
cancel, from, get, get, getOrThrow, isCancelled, isDone, maybeInvokeCallbacks, onError, onSuccess
public InternalProcessStanzaSmackFuture()
protected 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 Exception>
public final void processStanza(Stanza stanza)
handleStanza(Stanza)
. Note that this method is synchronized
.processStanza
in interface StanzaListener
stanza
- the stanza to process.