Package org.jivesoftware.smack
Class SmackFuture.SimpleInternalProcessStanzaSmackFuture<V,E extends java.lang.Exception>
- java.lang.Object
-
- org.jivesoftware.smack.SmackFuture<V,E>
-
- org.jivesoftware.smack.SmackFuture.InternalSmackFuture<V,E>
-
- org.jivesoftware.smack.SmackFuture.InternalProcessStanzaSmackFuture<V,E>
-
- org.jivesoftware.smack.SmackFuture.SimpleInternalProcessStanzaSmackFuture<V,E>
-
- Type Parameters:
V- the return value of the future.
- All Implemented Interfaces:
java.util.concurrent.Future<V>,StanzaListener,CallbackRecipient<V,E>,ExceptionCallback<E>
- Enclosing class:
- SmackFuture<V,E extends java.lang.Exception>
public abstract static class SmackFuture.SimpleInternalProcessStanzaSmackFuture<V,E extends java.lang.Exception> extends SmackFuture.InternalProcessStanzaSmackFuture<V,E>
A simple version of InternalSmackFuture which implements isNonFatalException(E) as always returningfalsemethod.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jivesoftware.smack.SmackFuture
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.SocketFuture
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.smack.SmackFuture
exception, result
-
-
Constructor Summary
Constructors Constructor Description SimpleInternalProcessStanzaSmackFuture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisNonFatalException(E exception)This method checks if the given exception is not fatal.-
Methods inherited from class org.jivesoftware.smack.SmackFuture.InternalProcessStanzaSmackFuture
handleStanza, processException, processStanza
-
Methods inherited from class org.jivesoftware.smack.SmackFuture.InternalSmackFuture
setException, setResult
-
Methods inherited from class org.jivesoftware.smack.SmackFuture
await, cancel, from, futureWait, futureWait, get, get, getIfAvailable, getOrThrow, isCancelled, isDone, maybeInvokeCallbacks, onCompletion, onError, onSuccess
-
-
-
-
Method Detail
-
isNonFatalException
protected boolean isNonFatalException(E exception)
Description copied from class:SmackFuture.InternalProcessStanzaSmackFutureThis 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.- Specified by:
isNonFatalExceptionin classSmackFuture.InternalProcessStanzaSmackFuture<V,E extends java.lang.Exception>- Parameters:
exception- the exception to check.- Returns:
trueif the exception is not fatal,falseotherwise.
-
-