Class TerminableIntermediateDelegationFuture<E>

    • Constructor Detail

      • TerminableIntermediateDelegationFuture

        public TerminableIntermediateDelegationFuture()
        Create a new future.
      • TerminableIntermediateDelegationFuture

        public TerminableIntermediateDelegationFuture​(ITerminableIntermediateFuture<E> src)
        Create a new future.
    • Method Detail

      • setTerminationSource

        public void setTerminationSource​(ITerminableFuture<java.util.Collection<E>> src)
        Set the source.
      • terminate

        public void terminate()
        Terminate the future. The exception will be set to FutureTerminatedException.
        Specified by:
        terminate in interface ITerminableFuture<E>
      • terminate

        public void terminate​(java.lang.Exception reason)
        Terminate the future and supply a custom reason.
        Specified by:
        terminate in interface ITerminableFuture<E>
      • delegateFrom

        public void delegateFrom​(IFuture<java.util.Collection<E>> source)
        Delegate the result and exception from another future.
        Overrides:
        delegateFrom in class IntermediateFuture<E>
        Parameters:
        source - The source future.
      • sendBackwardCommand

        public void sendBackwardCommand​(java.lang.Object info)
        Send a backward command in direction of the source.
        Specified by:
        sendBackwardCommand in interface IBackwardCommandFuture
        Parameters:
        info - The command info.