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

    • Field Detail

      • exception

        protected E extends java.lang.Exception exception
    • Method Detail

      • cancel

        public final boolean cancel​(boolean mayInterruptIfRunning)
        Specified by:
        cancel in interface java.util.concurrent.Future<V>
      • isCancelled

        public final boolean isCancelled()
        Specified by:
        isCancelled in interface java.util.concurrent.Future<V>
      • isDone

        public final boolean isDone()
        Specified by:
        isDone in interface java.util.concurrent.Future<V>
      • get

        public final V get()
                    throws java.lang.InterruptedException,
                           java.util.concurrent.ExecutionException
        Specified by:
        get in interface java.util.concurrent.Future<V>
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • getOrThrow

        public final V getOrThrow()
                           throws E extends java.lang.Exception,
                                  java.lang.InterruptedException
        Throws:
        E extends java.lang.Exception
        java.lang.InterruptedException
      • get

        public final V get​(long timeout,
                           java.util.concurrent.TimeUnit unit)
                    throws java.lang.InterruptedException,
                           java.util.concurrent.ExecutionException,
                           java.util.concurrent.TimeoutException
        Specified by:
        get in interface java.util.concurrent.Future<V>
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException
      • futureWait

        protected final void futureWait()
                                 throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • futureWait

        protected void futureWait​(long timeout)
                           throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • from

        public static <V,​E extends java.lang.Exception> SmackFuture<V,​E> from​(V result)
      • await

        public static boolean await​(java.util.Collection<? extends SmackFuture<?,​?>> futures,
                                    long timeout,
                                    java.util.concurrent.TimeUnit unit)
                             throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException