Class AbstractTransformer<T>

java.lang.Object
io.github.resilience4j.ratpack.internal.AbstractTransformer<T>
All Implemented Interfaces:
ratpack.func.Function<ratpack.exec.Upstream<? extends T>,​ratpack.exec.Upstream<T>>
Direct Known Subclasses:
BulkheadTransformer, CircuitBreakerTransformer, RateLimiterTransformer, RetryTransformer, TimeLimiterTransformer

public abstract class AbstractTransformer<T>
extends java.lang.Object
implements ratpack.func.Function<ratpack.exec.Upstream<? extends T>,​ratpack.exec.Upstream<T>>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface ratpack.func.Function

    ratpack.func.Function.ConditionalSpec<I extends java.lang.Object,​O extends java.lang.Object>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected ratpack.func.Function<java.lang.Throwable,​? extends T> recoverer  
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractTransformer()  
  • Method Summary

    Modifier and Type Method Description
    protected void handleRecovery​(ratpack.exec.Downstream<? super T> down, java.lang.Throwable throwable)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface ratpack.func.Function

    andThen, apply, compose, toFunction, toGuavaFunction
  • Field Details

    • recoverer

      @Nullable protected ratpack.func.Function<java.lang.Throwable,​? extends T> recoverer
  • Constructor Details

  • Method Details

    • handleRecovery

      protected void handleRecovery​(ratpack.exec.Downstream<? super T> down, java.lang.Throwable throwable)