Class ReferenceQueueWorker<T>

    • Field Detail

      • ALL_WORK_PER_POLL

        public static final int ALL_WORK_PER_POLL
        Since:
        3.0
        See Also:
        Constant Field Values
      • DEFAULT_MAX_WORK_PER_POLL

        public static final int DEFAULT_MAX_WORK_PER_POLL
        Since:
        3.0
        See Also:
        Constant Field Values
      • DEFAULT_POLL_MILLIS

        public static final int DEFAULT_POLL_MILLIS
        Since:
        3.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • ReferenceQueueWorker

        public ReferenceQueueWorker()
    • Method Detail

      • getPollMillis

        public long getPollMillis()
      • setPollMillis

        public void setPollMillis​(long pollMillis)
      • getMaxWorkPerPoll

        public int getMaxWorkPerPoll()
      • setMaxWorkPerPoll

        public void setMaxWorkPerPoll​(int maxWorkPerPoll)
      • getQueue

        protected java.lang.ref.ReferenceQueue<T> getQueue()
      • work

        protected final void work​(Worker.WorkContext context)
                           throws java.lang.Exception
        Specified by:
        work in class Worker
        Throws:
        java.lang.Exception
      • work

        protected abstract void work​(java.lang.ref.Reference<? extends T> reference)