Class ExecutorProviders.ExecutorServiceSupplier

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

    private static class ExecutorProviders.ExecutorServiceSupplier
    extends java.lang.Object
    implements DisposableSupplier<java.util.concurrent.ExecutorService>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose​(java.util.concurrent.ExecutorService instance)
      This method will dispose the provided object created by this Supplier.
      java.util.concurrent.ExecutorService get()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • get

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

        public void dispose​(java.util.concurrent.ExecutorService 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.ExecutorService>
        Parameters:
        instance - the instance to be disposed.