Interface QueueConfiguration


  • @ProviderType
    public interface QueueConfiguration
    The configuration of a queue.
    Since:
    3.0
    • Method Detail

      • getRetryDelayInMs

        long getRetryDelayInMs()
        Return the retry delay in ms
        Returns:
        The retry delay
      • getMaxRetries

        int getMaxRetries()
        Return the max number of retries, -1 for endless retry!
        Returns:
        Max number of retries
      • getMaxParallel

        int getMaxParallel()
        Return the max number of parallel processes.
        Returns:
        Max parallel processes
      • getTopics

        java.lang.String[] getTopics()
        The list of topics this queue is bound to.
        Returns:
        All topics for this queue.
      • isKeepJobs

        boolean isKeepJobs()
        Whether successful jobs are kept for a complete history
        Returns:
        true if successful jobs are kept.
        Since:
        1.3
      • getOwnThreadPoolSize

        int getOwnThreadPoolSize()
        Return the size for the optional thread pool for this queue.
        Returns:
        A positive number or 0 if the default thread pool should be used.
        Since:
        1.3
      • getRanking

        int getRanking()
        Get the ranking of this configuration.
        Returns:
        The ranking
      • isPreferRunOnCreationInstance

        boolean isPreferRunOnCreationInstance()
        Prefer to run the job on the same instance it was created on.
        Returns:
        true if running on the creation instance is preferred.
        Since:
        1.4