Interface ResponseStream.ResourceConsumer<T extends @NonNull AutoCloseable>
- Type Parameters:
T- the resource type
- Enclosing interface:
ResponseStream
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@ThreadSafe
@FunctionalInterface
public static interface ResponseStream.ResourceConsumer<T extends @NonNull AutoCloseable>
A lexical resource body invoked on the response producer thread.
Implementations reused across responses must support concurrent invocation of their shared state;
each response still confines its resource consumption to its own producer thread.
- Author:
- Mark Allen
-
Method Summary
-
Method Details
-
accept
-