Class PlainCRLStoreSpi.CRLAsyncUpdateTask

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    PlainCRLStoreSpi

    private static class PlainCRLStoreSpi.CRLAsyncUpdateTask
    extends WeakTimerTask<PlainCRLStoreSpi>
    This class follows a quite advanced but important pattern: - it is static so there is no hidden reference from it to the wrapping class - instead it has a weak reference to the wrapping object - when the weak reference is nullified, it means that the wrapping object was discarded by the GC and is no more usable: in this case the update task is automatically stopped.

    This mechanism guarantees that even in case that the validator is not disposed manually the memory is freed as needed.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.util.TimerTask

        cancel, scheduledExecutionTime
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class java.util.TimerTask