Class WorkflowWithObjectPool

    • Field Detail

      • DEFAULT_MAX_POOLSIZE

        public static final int DEFAULT_MAX_POOLSIZE
        The default maximum pool size.
        See Also:
        Constant Field Values
      • DEFAULT_MIN_IDLE

        public static final int DEFAULT_MIN_IDLE
        the default minimum idle size.
        See Also:
        Constant Field Values
      • DEFAULT_MAX_IDLE

        public static final int DEFAULT_MAX_IDLE
        The default max idle size.
        See Also:
        Constant Field Values
    • Constructor Detail

      • WorkflowWithObjectPool

        public WorkflowWithObjectPool()
    • Method Detail

      • resubmitMessage

        protected void resubmitMessage​(AdaptrisMessage msg)
        Description copied from class: WorkflowImp
        Resubmit a message upon the channel becoming available again.
        Specified by:
        resubmitMessage in class WorkflowImp
        Parameters:
        msg - the AdaptrisMessage.
      • poolSize

        public int poolSize()
      • checkPoolConfig

        protected void checkPoolConfig()
        Check the object pool such that it isn't going to cause issues.
      • minIdle

        public int minIdle()
        Return the maximum idle objects in the pool.
        Returns:
        the maximum idle number
      • maxIdle

        public int maxIdle()
        Return the maximum idle objects in the pool.
        Returns:
        the maximum idle number
      • initWaitTimeMs

        public long initWaitTimeMs()
      • getPoolSize

        public java.lang.Integer getPoolSize()
        The max size of the pool
      • setPoolSize

        public void setPoolSize​(java.lang.Integer poolSize)
        The max size of the pool
      • getMinIdle

        public java.lang.Integer getMinIdle()
        The minimum number of idle objects in the pool.
      • setMinIdle

        public void setMinIdle​(java.lang.Integer minIdle)
        The minimum number of idle objects in the pool.
      • getMaxIdle

        public java.lang.Integer getMaxIdle()
        The maximum number of idle objects in the pool.
      • setMaxIdle

        public void setMaxIdle​(java.lang.Integer maxIdle)
        The maximum number of idle objects in the pool.
      • getInitWaitTime

        public TimeInterval getInitWaitTime()
        Set the amount of time to wait for object pool population.

        Upon start the object pool is populated with the minIdle() number of workers.

      • setInitWaitTime

        public void setInitWaitTime​(TimeInterval initWaitTime)
        Set the amount of time to wait for object pool population.

        Upon start the object pool is populated with the minIdle() number of workers.