Interface PendingService<O,S,R>

Type Parameters:
O - type of owner of the service
S - type of service owned while pending
R - type of value passed to hooks indicating that the service's pending has ended (the service became ready)
All Known Subinterfaces:
ManagedPendingService<O,S,R>
All Known Implementing Classes:
AbstractManagedPendingService
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PendingService<O,S,R>
A service which gives per-owner access to its owned service. This allows implementing hooks called whenever all services are ready.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    An owned service which must be closed once the owner is ready with it.
  • Method Summary

    Modifier and Type
    Method
    Description
    request(O owner)
    Gets an instance of a pending service which must be closed once the owner is ready with it.
  • Method Details

    • request

      @NotNull @NotNull PendingService.OwnedService<S,R> request(@NonNull O owner)
      Gets an instance of a pending service which must be closed once the owner is ready with it.
      Parameters:
      owner - owner requesting the service
      Returns:
      owned service which must be closed once the owner is ready with it