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>

  • Constructor Details

  • Method Details

    • isNonFatalException

      protected abstract boolean isNonFatalException(E exception)
      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.
      Parameters:
      exception - the exception to check.
      Returns:
      true if the exception is not fatal, false otherwise.
    • handleStanza

      protected abstract void handleStanza(Stanza stanza)
    • processException

      public final void processException(E exception)
      Specified by:
      processException in interface ExceptionCallback<V>
    • processStanza

      public final void processStanza(Stanza stanza)
      Wrapper method for handleStanza(Stanza). Note that this method is synchronized.
      Specified by:
      processStanza in interface StanzaListener
      Parameters:
      stanza - the stanza to process.