Class MethodSearch<R>

    • Method Detail

      • invoke

        public <T> CompletionStage<MethodInvocationResult<R>> invoke​(T arg,
                                                                     InvocationOptions options)
        Invokes any one of the methods matching the search criteria with the designated invocation arguments and options.
        Type Parameters:
        T - type of the invocation arguments
        Parameters:
        arg - invocation arguments
        options - invocation options
        Returns:
        a stage that will complete when all method invocations have completed, never null
      • invokeAll

        public <T> CompletionStage<MethodInvocationResult<R>> invokeAll​(T arg,
                                                                        InvocationOptions options)
        Invokes all methods that match the search criteria with the designated invocation arguments and options.
        Type Parameters:
        T - type of the invocation arguments
        Parameters:
        arg - invocation arguments
        options - invocation options
        Returns:
        a stage that will complete upon method invocation completion, never null
        Since:
        1.3
      • all

        public CompletionStage<Collection<V>> all()
        Description copied from interface: Search
        Retrieves all elements matching the search criteria.
        Specified by:
        all in interface Search<K>
        Returns:
        a stage that will complete with the first batch of matching elements, never null
      • any

        public CompletionStage<V> any()
        Description copied from interface: Search
        Retrieves any one of the elements from a set matching the search criteria.
        Specified by:
        any in interface Search<K>
        Returns:
        a stage that completes with any one of the matching elements, never null