Interface ExecutorProvider

  • All Known Implementing Classes:
    FixedExecutorProvider, InstantiatingExecutorProvider

    public interface ExecutorProvider
    Provides an interface to either build a ScheduledExecutorService or provide a fixed ScheduledExecutorService that will be used to make calls to a service.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.concurrent.ScheduledExecutorService getExecutor()
      Gets the executor to use.
      boolean shouldAutoClose()
      Indicates whether the executor should be closed by the containing client class.
    • Method Detail

      • shouldAutoClose

        boolean shouldAutoClose()
        Indicates whether the executor should be closed by the containing client class.
      • getExecutor

        java.util.concurrent.ScheduledExecutorService getExecutor()
        Gets the executor to use.