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 returningfalsemethod.
-
-
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 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, await, cancel, from, futureWait, futureWait, get, get, getExceptionIfAvailable, getIfAvailable, getOrThrow, isCancelled, isDone, maybeInvokeCallbacks, onCompletion, onError, onSuccess, wasSuccessful
-
-
-
-
Constructor Detail
-
SimpleInternalProcessStanzaSmackFuture
public SimpleInternalProcessStanzaSmackFuture()
-
-
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 Exception>- Parameters:
exception- the exception to check.- Returns:
trueif the exception is not fatal,falseotherwise.
-
-