Interface ExecutorConfiguration

    • Field Detail

      • PREFIX

        static final java.lang.String PREFIX
        The prefix used for configuration.
        See Also:
        Constant Field Values
      • PREFIX_IO

        static final java.lang.String PREFIX_IO
        The prefix used for I/O pool configuration.
        See Also:
        Constant Field Values
      • PREFIX_SCHEDULED

        static final java.lang.String PREFIX_SCHEDULED
        The prefix used for Scheduled task configuration.
        See Also:
        Constant Field Values
      • PREFIX_CONSUMER

        static final java.lang.String PREFIX_CONSUMER
        The prefix used for Scheduled task configuration.
        See Also:
        Constant Field Values
    • Method Detail

      • getName

        @Nullable
        default java.lang.String getName()
        Returns:
        The name of the component
      • getNumberOfThreads

        @Min(1L)
        @Min(1L) java.lang.Integer getNumberOfThreads()
        Returns:
        The number of threads for ExecutorType.FIXED
      • getCorePoolSize

        @Min(1L)
        @Min(1L) java.lang.Integer getCorePoolSize()
        Returns:
        The core pool size for ExecutorType.SCHEDULED
      • getThreadFactoryClass

        java.util.Optional<java.lang.Class<? extends java.util.concurrent.ThreadFactory>> getThreadFactoryClass()
        Returns:
        The class to use as the ThreadFactory