Class PoolHolder

java.lang.Object
io.github.simplexdevelopment.impl.PoolHolder
All Implemented Interfaces:
Context<ServicePool>

public class PoolHolder extends Object implements Context<ServicePool>
  • Constructor Details

    • PoolHolder

      public PoolHolder(Main plugin)
  • Method Details

    • getContext

      @NotNull public @NotNull reactor.core.publisher.Mono<ServicePool> getContext()
      Specified by:
      getContext in interface Context<ServicePool>
      Returns:
      A Mono object which contains a single element represented by the definer of this Context class.
    • setContext

      @NotNull public @NotNull reactor.core.publisher.Mono<Void> setContext(ServicePool context)
      Specified by:
      setContext in interface Context<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

      public Collection<ServicePool> contextCollection()
      Specified by:
      contextCollection in interface Context<ServicePool>
      Returns:
      A collection of objects related to the definer of this Context class.