Class DelayDefinition

    • Constructor Detail

      • DelayDefinition

        public DelayDefinition()
      • DelayDefinition

        public DelayDefinition​(org.apache.camel.Expression delay)
    • Method Detail

      • getShortName

        public String getShortName()
        Specified by:
        getShortName in interface org.apache.camel.NamedNode
      • getLabel

        public String getLabel()
        Description copied from class: ProcessorDefinition
        Returns a label to describe this node such as the expression if some kind of expression node
        Specified by:
        getLabel in interface org.apache.camel.NamedNode
        Overrides:
        getLabel in class ExpressionNode
      • delayTime

        public DelayDefinition delayTime​(Long delay)
        Sets the delay time in millis to delay
        Parameters:
        delay - delay time in millis
        Returns:
        the builder
      • callerRunsWhenRejected

        public DelayDefinition callerRunsWhenRejected​(boolean callerRunsWhenRejected)
        Whether or not the caller should run the task when it was rejected by the thread pool.

        Is by default true

        Parameters:
        callerRunsWhenRejected - whether or not the caller should run
        Returns:
        the builder
      • callerRunsWhenRejected

        public DelayDefinition callerRunsWhenRejected​(String callerRunsWhenRejected)
        Whether or not the caller should run the task when it was rejected by the thread pool.

        Is by default true

        Parameters:
        callerRunsWhenRejected - whether or not the caller should run
        Returns:
        the builder
      • asyncDelayed

        public DelayDefinition asyncDelayed()
        Enables asynchronous delay which means the thread will not block while delaying.
      • asyncDelayed

        public DelayDefinition asyncDelayed​(String asyncDelayed)
        Enables asynchronous delay which means the thread will not block while delaying.
      • syncDelayed

        public DelayDefinition syncDelayed()
        Enables asynchronous delay which means the thread will not block while delaying.
      • getAsyncDelayed

        public String getAsyncDelayed()
      • setAsyncDelayed

        public void setAsyncDelayed​(String asyncDelayed)
      • getCallerRunsWhenRejected

        public String getCallerRunsWhenRejected()
      • setCallerRunsWhenRejected

        public void setCallerRunsWhenRejected​(String callerRunsWhenRejected)
      • getExecutorService

        public String getExecutorService()
      • setExecutorService

        public void setExecutorService​(String executorService)