Class ServicePool

java.lang.Object
io.github.simplex.simplexss.ServicePool

public final class ServicePool extends Object
  • Field Details

    • associatedServices

      private final Set<IService> associatedServices
    • scheduler

      private final reactor.core.scheduler.Scheduler scheduler
    • name

      private final org.bukkit.NamespacedKey name
    • DEFAULT

      private static final org.bukkit.NamespacedKey DEFAULT
  • Constructor Details

    • ServicePool

      public ServicePool(org.bukkit.NamespacedKey name, boolean multithreaded)
  • Method Details

    • getDefaultNamespacedKey

      static org.bukkit.NamespacedKey getDefaultNamespacedKey()
    • addService

      void addService(IService service)
    • isValidService

      boolean isValidService(IService service)
    • getAssociatedServices

      @NotNull public @NotNull Set<IService> getAssociatedServices()
    • startService

      public reactor.core.publisher.Mono<reactor.core.Disposable> startService(org.bukkit.NamespacedKey service_name)
    • startServices

      public reactor.core.publisher.Flux<reactor.core.Disposable> startServices()
    • stopServices

      public reactor.core.publisher.Mono<Void> stopServices(reactor.core.publisher.Flux<reactor.core.Disposable> disposableThread)
    • stopService

      public reactor.core.publisher.Mono<Void> stopService(org.bukkit.NamespacedKey service_name)
    • getService

      public reactor.core.publisher.Mono<IService> getService(org.bukkit.NamespacedKey service_name)
    • removeService

      void removeService(IService service)
    • recycle

      public reactor.core.publisher.Mono<ServicePool> recycle()
    • getScheduler

      public reactor.core.scheduler.Scheduler getScheduler()