Interface Sink<T>

All Known Implementing Classes:
CircuitBreakerSink, RetrySink, SinkRunner, TimeLimiterSink

public interface Sink<T>
Author:
Pierre Lecerf ([email protected])
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
     
    void
    execute(Output<T> output, Context<T> context)
     
    static <T> Sink<T>
    of(Object target)
    Create a Sink out of a non-specific instance (i.e.
  • Method Details

    • execute

      void execute(Output<T> output, Context<T> context) throws Exception
      Throws:
      Exception
    • defaultId

      default String defaultId()
    • of

      static <T> Sink<T> of(Object target)
      Create a Sink out of a non-specific instance (i.e. not a Sink implementation). The resulting sink will leverage reflection-based method introspection mechanisms for resolving execution configuration.