@API(status=STABLE) public interface Capture<T> extends org.zalando.fauxpas.ThrowingConsumer<T,RuntimeException>, Function<org.springframework.http.client.ClientHttpResponse,T>
Modifier and Type | Method and Description |
---|---|
default T |
apply(org.springframework.http.client.ClientHttpResponse response) |
void |
capture(T result) |
static <T> Capture<T> |
empty() |
T |
retrieve() |
default void |
tryAccept(T result) |
void capture(@Nullable T result) throws IllegalStateException
IllegalStateException
T retrieve() throws CaptureException
CaptureException
default void tryAccept(@Nullable T result)
tryAccept
in interface org.zalando.fauxpas.ThrowingConsumer<T,RuntimeException>
default T apply(org.springframework.http.client.ClientHttpResponse response)
static <T> Capture<T> empty()
Copyright © 2015–2021 Zalando SE. All rights reserved.