Interface PendingService<O,S,R>
- Type Parameters:
O- type of owner of the serviceS- type of service owned while pendingR- 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.
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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn owned service which must be closed once the owner is ready with it. -
Method Summary
Modifier and TypeMethodDescription@NotNull PendingService.OwnedService<S,R> Gets an instance of a pending service which must be closed once the owner is ready with it.
-
Method Details
-
request
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
-