Interface ResponseStream.ResourceAborter<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.

A provider-supported concurrent abort operation, distinct from final close. Implementations reused across responses must support concurrent invocation.
Author:
Mark Allen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    abort(@NonNull T resource)
    Aborts use of the resource.
  • Method Details

    • abort

      void abort(@NonNull T resource) throws Exception
      Aborts use of the resource.
      Parameters:
      resource - the owned resource
      Throws:
      Exception - if abort fails