Class SmackFuture.SimpleInternalProcessStanzaSmackFuture<V,​E extends java.lang.Exception>

  • 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 returning false method.
    • Constructor Detail

      • SimpleInternalProcessStanzaSmackFuture

        public SimpleInternalProcessStanzaSmackFuture()
    • Method Detail

      • isNonFatalException

        protected boolean isNonFatalException​(E exception)
        Description copied from class: SmackFuture.InternalProcessStanzaSmackFuture
        This method checks if the given exception is not fatal. If this method returns false, then the future will automatically set the given exception as failure reason and notify potential waiting threads.
        Specified by:
        isNonFatalException in class SmackFuture.InternalProcessStanzaSmackFuture<V,​E extends java.lang.Exception>
        Parameters:
        exception - the exception to check.
        Returns:
        true if the exception is not fatal, false otherwise.