Class ReferenceQueueWorker<T>

All Implemented Interfaces:
INotifier, INotifier.INotifier2, IDeactivateable, ILifecycle, ILifecycle.DeferrableActivation
Direct Known Subclasses:
ReferenceMonitor

public abstract class ReferenceQueueWorker<T> extends Worker
Since:
2.0
Author:
Eike Stepper
  • Field Details

    • ALL_WORK_PER_POLL

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

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

      public static final int DEFAULT_POLL_MILLIS
      Since:
      3.0
      See Also:
  • Constructor Details

    • ReferenceQueueWorker

      public ReferenceQueueWorker()
  • Method Details

    • getPollMillis

      public long getPollMillis()
    • setPollMillis

      public void setPollMillis(long pollMillis)
    • getMaxWorkPerPoll

      public int getMaxWorkPerPoll()
    • setMaxWorkPerPoll

      public void setMaxWorkPerPoll(int maxWorkPerPoll)
    • getQueue

      protected ReferenceQueue<T> getQueue()
    • work

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

      protected abstract void work(Reference<? extends T> reference)