Package jadex.bridge

Class ComponentResultListener<E>

    • Field Detail

      • undone

        protected boolean undone
        The undone flag.
    • Constructor Detail

      • ComponentResultListener

        public ComponentResultListener​(IResultListener<E> listener,
                                       IInternalAccess component)
        Create a new component result listener.
        Parameters:
        listener - The listener.
        adapter - The adapter.
      • ComponentResultListener

        public ComponentResultListener​(IResultListener<E> listener,
                                       IExternalAccess access)
        Create a new component result listener.
        Parameters:
        listener - The listener.
        adapter - The adapter.
    • Method Detail

      • resultAvailable

        public void resultAvailable​(E result)
        Called when the result is available.
        Specified by:
        resultAvailable in interface IResultListener<E>
        Parameters:
        result - The result.
      • exceptionOccurred

        public void exceptionOccurred​(java.lang.Exception exception)
        Called when an exception occurred.
        Specified by:
        exceptionOccurred in interface IResultListener<E>
        Parameters:
        exception - The exception.
      • exceptionOccurredIfUndone

        public void exceptionOccurredIfUndone​(java.lang.Exception exception)
        Called when an exception occurred.
        Specified by:
        exceptionOccurredIfUndone in interface IUndoneResultListener<E>
        Parameters:
        exception - The exception.
      • scheduleForward

        protected void scheduleForward​(java.lang.Runnable notification)
        Execute a listener notification on the component.
      • scheduleForward

        public static void scheduleForward​(IExternalAccess access,
                                           IInternalAccess component,
                                           java.lang.Runnable notification)
        Execute a listener notification on the component using either an external access or the internal one and robustly use the rescue thread for the notification, when the component is terminated.