Package jadex.future

Class PullIntermediateFuture<E>

All Implemented Interfaces:
IBackwardCommandFuture, IForwardCommandFuture, IFuture<Collection<E>>, IIntermediateFuture<E>, IPullIntermediateFuture<E>, ITerminableFuture<Collection<E>>, ITerminableIntermediateFuture<E>, Supplier<Collection<E>>

public class PullIntermediateFuture<E> extends TerminableIntermediateFuture<E> implements IPullIntermediateFuture<E>
Intermediate future with pull mechanism. Allows for pulling results by the caller. In this way a pull intermediate future is similar to an iterator.
  • Field Details

  • Constructor Details

    • PullIntermediateFuture

      public PullIntermediateFuture()
      Create a new future.
    • PullIntermediateFuture

      public PullIntermediateFuture(Exception exception)
      Create a future that is already done (failed).
      Parameters:
      exception - The exception.
    • PullIntermediateFuture

      public PullIntermediateFuture(jadex.common.ICommand<PullIntermediateFuture<E>> pullcmd)
      Create a new future.
      Parameters:
      pullcmd - The pull command
    • PullIntermediateFuture

      public PullIntermediateFuture(jadex.common.ICommand<PullIntermediateFuture<E>> pullcmd, ITerminationCommand termcom)
      Create a new future.
      Parameters:
      pullcmd - The pull command
      termcom - The runnable to be executed in case of termination.
  • Method Details