Package org.jivesoftware.smack
Class SmackFuture.InternalProcessStanzaSmackFuture<V,E extends Exception>
java.lang.Object
org.jivesoftware.smack.SmackFuture<V,E>
org.jivesoftware.smack.SmackFuture.InternalSmackFuture<V,E>
org.jivesoftware.smack.SmackFuture.InternalProcessStanzaSmackFuture<V,E>
- All Implemented Interfaces:
Future<V>,StanzaListener,CallbackRecipient<V,,E> ExceptionCallback<E>
- Direct Known Subclasses:
SmackFuture.SimpleInternalProcessStanzaSmackFuture
- Enclosing class:
SmackFuture<V,E extends Exception>
public abstract static class SmackFuture.InternalProcessStanzaSmackFuture<V,E extends Exception>
extends SmackFuture.InternalSmackFuture<V,E>
implements StanzaListener, ExceptionCallback<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jivesoftware.smack.SmackFuture
SmackFuture.InternalProcessStanzaSmackFuture<V,E extends Exception>, SmackFuture.InternalSmackFuture<V, E extends Exception>, SmackFuture.SimpleInternalProcessStanzaSmackFuture<V, E extends Exception>, SmackFuture.SocketFuture -
Field Summary
Fields inherited from class org.jivesoftware.smack.SmackFuture
exception, result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidhandleStanza(Stanza stanza) protected abstract booleanisNonFatalException(E exception) This method checks if the given exception is not fatal.final voidprocessException(E exception) final voidprocessStanza(Stanza stanza) Wrapper method forhandleStanza(Stanza).Methods inherited from class org.jivesoftware.smack.SmackFuture.InternalSmackFuture
setException, setResultMethods inherited from class org.jivesoftware.smack.SmackFuture
await, await, cancel, from, futureWait, futureWait, get, get, getExceptionIfAvailable, getIfAvailable, getOrThrow, isCancelled, isDone, maybeInvokeCallbacks, onCompletion, onError, onSuccess, wasSuccessful
-
Constructor Details
-
InternalProcessStanzaSmackFuture
public InternalProcessStanzaSmackFuture()
-
-
Method Details
-
isNonFatalException
This method checks if the given exception is not fatal. If this method returnsfalse, then the future will automatically set the given exception as failure reason and notify potential waiting threads.- Parameters:
exception- the exception to check.- Returns:
trueif the exception is not fatal,falseotherwise.
-
handleStanza
-
processException
- Specified by:
processExceptionin interfaceExceptionCallback<V>
-
processStanza
Wrapper method forhandleStanza(Stanza). Note that this method issynchronized.- Specified by:
processStanzain interfaceStanzaListener- Parameters:
stanza- the stanza to process.
-