Interface Cache.Writer<T>

  • Enclosing interface:
    Cache

    public static interface Cache.Writer<T>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.function.Consumer<T> finisher()
      The consumer to be invoked after response body fully read.
      java.net.http.HttpResponse.BodySubscriber<T> subscriber()
      The body subscriber to collect response body.
    • Method Detail

      • subscriber

        java.net.http.HttpResponse.BodySubscriber<T> subscriber()
        The body subscriber to collect response body.
        Returns:
        The body subscriber.
      • finisher

        java.util.function.Consumer<T> finisher()
        The consumer to be invoked after response body fully read.
        Returns:
        The response body consumer.