Class FutureStream<T extends Resource>

java.lang.Object
org.jdrupes.builder.core.FutureStream<T>
Type Parameters:
T - the provided resource type

public class FutureStream<T extends Resource> extends Object
Evaluate the stream from a provider asynchronously.
  • Constructor Details

  • Method Details

    • isProviderInvocationAllowed

      public static boolean isProviderInvocationAllowed()
      Checks if is provider invocation is allowed. Clears the allowed flag to also detect nested invocations.
      Returns:
      true, if is provider invocation allowed
    • stream

      public Stream<T> stream()
      Returns the lazily evaluated stream of resources.
      Returns:
      the stream