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:
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.
-
-
Field Summary
-
Fields inherited from class eu.emi.security.authn.x509.helpers.WeakTimerTask
partnerRef
-
-
Constructor Summary
Constructors Constructor Description CRLAsyncUpdateTask(PlainCRLStoreSpi partner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
-
-
Constructor Detail
-
CRLAsyncUpdateTask
public CRLAsyncUpdateTask(PlainCRLStoreSpi partner)
-
-