Class PlainCRLStoreSpi.CRLAsyncUpdateTask
java.lang.Object
java.util.TimerTask
eu.emi.security.authn.x509.helpers.WeakTimerTask<PlainCRLStoreSpi>
eu.emi.security.authn.x509.helpers.crl.PlainCRLStoreSpi.CRLAsyncUpdateTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
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.
-
Field Summary
Fields inherited from class eu.emi.security.authn.x509.helpers.WeakTimerTask
partnerRef
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime