Class MultiServiceInvocationHandler.IntermediateMethodResultListener<T>

  • All Implemented Interfaces:
    jadex.commons.future.IIntermediateResultListener<T>, jadex.commons.future.IResultListener<java.util.Collection<T>>
    Enclosing class:
    MultiServiceInvocationHandler

    public class MultiServiceInvocationHandler.IntermediateMethodResultListener<T>
    extends java.lang.Object
    implements jadex.commons.future.IIntermediateResultListener<T>
    Listener that invokes service methods and delegates the results.
    • Constructor Summary

      Constructors 
      Constructor Description
      IntermediateMethodResultListener​(jadex.commons.future.Future fut, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.reflect.Method muxmethod)
      Create a new listener.
    • Constructor Detail

      • IntermediateMethodResultListener

        public IntermediateMethodResultListener​(jadex.commons.future.Future fut,
                                                java.lang.reflect.Method method,
                                                java.lang.Object[] args,
                                                java.lang.reflect.Method muxmethod)
        Create a new listener.
    • Method Detail

      • intermediateResultAvailable

        public void intermediateResultAvailable​(T result)
        Called when a service has been found.
        Specified by:
        intermediateResultAvailable in interface jadex.commons.future.IIntermediateResultListener<T>
        Parameters:
        result - The result.
      • finished

        public void finished()
        Called when all services have been found.
        Specified by:
        finished in interface jadex.commons.future.IIntermediateResultListener<T>
      • resultAvailable

        public void resultAvailable​(java.util.Collection<T> result)
        Called when services have been found.
        Specified by:
        resultAvailable in interface jadex.commons.future.IResultListener<T>
        Parameters:
        result - The result.
      • exceptionOccurred

        public void exceptionOccurred​(java.lang.Exception exception)
        Called when an exception has occurred.
        Specified by:
        exceptionOccurred in interface jadex.commons.future.IResultListener<T>
        Parameters:
        exception - The exception.
      • maxResultCountAvailable

        public void maxResultCountAvailable​(int max)
        Specified by:
        maxResultCountAvailable in interface jadex.commons.future.IIntermediateResultListener<T>