Class PoolHolder
java.lang.Object
io.github.simplexdevelopment.impl.PoolHolder
- All Implemented Interfaces:
Context<ServicePool>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull reactor.core.publisher.Mono<ServicePool>
@NotNull reactor.core.publisher.Mono<Void>
setContext
(ServicePool context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.simplexdevelopment.api.Context
fluxFromCollection
-
Field Details
-
servicePoolCollection
-
selectedPool
-
-
Constructor Details
-
PoolHolder
-
-
Method Details
-
getContext
- Specified by:
getContext
in interfaceContext<ServicePool>
- Returns:
- A Mono object which contains a single element represented by the definer of this Context class.
-
setContext
- Specified by:
setContext
in interfaceContext<ServicePool>
- Parameters:
context
- A separate (or identical) object identified by the definer of this Context class.- Returns:
- A Mono object which can be used to set the element of this Context class in a non-blocking manner.
-
contextCollection
- Specified by:
contextCollection
in interfaceContext<ServicePool>
- Returns:
- A collection of objects related to the definer of this Context class.
-