Package org.jivesoftware.smack
Class SmackFuture.SimpleInternalProcessStanzaSmackFuture<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>
org.jivesoftware.smack.SmackFuture.SimpleInternalProcessStanzaSmackFuture<V,E>
- Type Parameters:
V
- the return value of the future.
- All Implemented Interfaces:
Future<V>
,StanzaListener
,CallbackRecipient<V,
,E> ExceptionCallback<E>
- Enclosing class:
- SmackFuture<V,
E extends Exception>
public abstract static class SmackFuture.SimpleInternalProcessStanzaSmackFuture<V,E extends Exception>
extends SmackFuture.InternalProcessStanzaSmackFuture<V,E>
A simple version of InternalSmackFuture which implements isNonFatalException(E) as always returning
false
method.-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isNonFatalException
(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, await, cancel, from, futureWait, futureWait, get, get, getExceptionIfAvailable, getIfAvailable, getOrThrow, isCancelled, isDone, maybeInvokeCallbacks, onCompletion, onError, onSuccess, wasSuccessful
-
Constructor Details
-
SimpleInternalProcessStanzaSmackFuture
-
-
Method Details
-
isNonFatalException
Description copied from class:SmackFuture.InternalProcessStanzaSmackFuture
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.- Specified by:
isNonFatalException
in classSmackFuture.InternalProcessStanzaSmackFuture<V,
E extends Exception> - Parameters:
exception
- the exception to check.- Returns:
true
if the exception is not fatal,false
otherwise.
-