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

    Modifier and Type
    Method
    Description
    Gets the executor to use.
    boolean
    Indicates whether the executor should be closed by the containing client class.
  • Method Details

    • shouldAutoClose

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

      Gets the executor to use.