Class PushBuilder

java.lang.Object
com.fluxtion.ext.streaming.builder.factory.PushBuilder

public class PushBuilder
extends java.lang.Object
Factory for building PushNotifier instances.
Author:
V12 Technology Ltd.
  • Constructor Summary

    Constructors 
    Constructor Description
    PushBuilder()  
  • Method Summary

    Modifier and Type Method Description
    static <T,​ S> void push​(com.fluxtion.api.partition.LambdaReflection.SerializableFunction<T,​S> supplier, com.fluxtion.api.partition.LambdaReflection.SerializableConsumer<? extends S> consumer)  
    static <D> void push​(com.fluxtion.api.partition.LambdaReflection.SerializableSupplier<D> supplier, com.fluxtion.api.partition.LambdaReflection.SerializableConsumer<? extends D> consumer)
    Pushes data from the source method to the target method when the source is on the executing event path.
    static <S,​ D> com.fluxtion.ext.streaming.api.Wrapper<S> push​(com.fluxtion.api.partition.LambdaReflection.SerializableSupplier<D> supplier, com.fluxtion.api.partition.LambdaReflection.SerializableFunction<? extends D,​S> consumer)  
    static <S,​ T> S pushNotification​(S source, T target)
    Adds and event graph dependency from the source to the target.
    static <S extends T,​ T>
    void
    pushSource​(T source, com.fluxtion.api.partition.LambdaReflection.SerializableConsumer<S> consumer)  
    static java.lang.Object unWrap​(com.fluxtion.api.partition.LambdaReflection.MethodReferenceReflection supplier)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • pushNotification

      public static <S,​ T> S pushNotification​(S source, T target)
      Adds and event graph dependency from the source to the target. The target will be notified if the source is on the currently executing event path.
      Type Parameters:
      S -
      T -
      Parameters:
      source -
      target -
      Returns:
    • pushSource

      public static <S extends T,​ T> void pushSource​(T source, com.fluxtion.api.partition.LambdaReflection.SerializableConsumer<S> consumer)
    • push

      public static <T,​ S> void push​(com.fluxtion.api.partition.LambdaReflection.SerializableFunction<T,​S> supplier, com.fluxtion.api.partition.LambdaReflection.SerializableConsumer<? extends S> consumer)
    • push

      public static <D> void push​(com.fluxtion.api.partition.LambdaReflection.SerializableSupplier<D> supplier, com.fluxtion.api.partition.LambdaReflection.SerializableConsumer<? extends D> consumer)
      Pushes data from the source method to the target method when the source is on the executing event path.
      Type Parameters:
      S -
      D -
      Parameters:
      supplier -
      consumer -
    • push

      public static <S,​ D> com.fluxtion.ext.streaming.api.Wrapper<S> push​(com.fluxtion.api.partition.LambdaReflection.SerializableSupplier<D> supplier, com.fluxtion.api.partition.LambdaReflection.SerializableFunction<? extends D,​S> consumer)
    • unWrap

      public static java.lang.Object unWrap​(com.fluxtion.api.partition.LambdaReflection.MethodReferenceReflection supplier)