Package jadex.bridge

Class TimeoutIntermediateResultListener<E>

    • Constructor Detail

      • TimeoutIntermediateResultListener

        public TimeoutIntermediateResultListener​(long timeout,
                                                 IExternalAccess exta)
        Create a new listener.
      • TimeoutIntermediateResultListener

        public TimeoutIntermediateResultListener​(long timeout,
                                                 IExternalAccess exta,
                                                 boolean realtime,
                                                 java.lang.Object message,
                                                 IIntermediateResultListener<E> listener)
        Create a new listener.
    • Method Detail

      • finished

        public void finished()
        Declare that the future is finished. This method is only called for intermediate futures, i.e. when this method is called it is guaranteed that the intermediateResultAvailable method was called for all intermediate results before.
        Specified by:
        finished in interface IIntermediateResultListener<E>
      • maxResultCountAvailable

        public void maxResultCountAvailable​(int max)
        Description copied from interface: IIntermediateResultListener
        Declare that the future result count is available. This method is only called for intermediate futures, i.e. when this method is called it is guaranteed that the intermediateResultAvailable method will be called as often as the result count indicates except an exception occurs.
        Specified by:
        maxResultCountAvailable in interface IIntermediateResultListener<E>
      • finishedIfUndone

        public void finishedIfUndone()
        Declare that the future is finished. This method is only called for intermediate futures, i.e. when this method is called it is guaranteed that the intermediateResultAvailable method was called for all intermediate results before.
        Specified by:
        finishedIfUndone in interface IUndoneIntermediateResultListener<E>
      • isUndone

        public boolean isUndone()
        Get the undone.
        Returns:
        The undone.