Class ExecutorProviders.ScheduledExecutorServiceSupplier

  • All Implemented Interfaces:
    java.util.function.Supplier<java.util.concurrent.ScheduledExecutorService>, DisposableSupplier<java.util.concurrent.ScheduledExecutorService>
    Enclosing class:
    ExecutorProviders

    private static class ExecutorProviders.ScheduledExecutorServiceSupplier
    extends java.lang.Object
    implements DisposableSupplier<java.util.concurrent.ScheduledExecutorService>
    • Method Detail

      • get

        public java.util.concurrent.ScheduledExecutorService get()
        Specified by:
        get in interface java.util.function.Supplier<java.util.concurrent.ScheduledExecutorService>
      • dispose

        public void dispose​(java.util.concurrent.ScheduledExecutorService instance)
        Description copied from interface: DisposableSupplier
        This method will dispose the provided object created by this Supplier.
        Specified by:
        dispose in interface DisposableSupplier<java.util.concurrent.ScheduledExecutorService>
        Parameters:
        instance - the instance to be disposed.