Interface SynchronousExpressionInput<T>

  • Type Parameters:
    T -
    All Superinterfaces:
    java.lang.AutoCloseable, java.util.concurrent.Callable<T>, ExpressionInput<T>, Input<T>, java.util.function.Supplier<T>

    public interface SynchronousExpressionInput<T>
    extends ExpressionInput<T>
    A marker interface to determine if the given expression input is synchronous.
    • Method Detail

      • get

        T get()
        throws javax.el.PropertyNotFoundException,
              javax.el.ELException
        Get a new result of the synchronous expression evaluation
        Specified by:
        get in interface ExpressionInput<T>
        Specified by:
        get in interface Input<T>
        Specified by:
        get in interface java.util.function.Supplier<T>
        Returns:
        next item or null if no items available more
        Throws:
        javax.el.PropertyNotFoundException
        javax.el.ELException
      • get

        int get​(java.util.List<T> buffer,
                int limit)
         throws javax.el.PropertyNotFoundException,
                javax.el.ELException
        Bulk new values get
        Specified by:
        get in interface ExpressionInput<T>
        Specified by:
        get in interface Input<T>
        Parameters:
        buffer - buffer for the values
        limit - max count of the values to put into the buffer
        Returns:
        count of the items have been get and put into the buffer actually
        Throws:
        javax.el.PropertyNotFoundException
        javax.el.ELException
      • skip

        long skip​(long count)
           throws javax.el.PropertyNotFoundException,
                  javax.el.ELException
        Skip some items.
        Specified by:
        skip in interface ExpressionInput<T>
        Specified by:
        skip in interface Input<T>
        Parameters:
        count - count of items should be skipped from the input stream
        Throws:
        javax.el.PropertyNotFoundException
        javax.el.ELException