- All Implemented Interfaces:
Service, Stoppable, Runnable
Periodically checks a map of Nonce's to remove those which
have expired.
The map should be a reference to the live map in use by a NonceProvider
- Author:
- brad
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ExpiredNonceRemover
public ExpiredNonceRemover(Map<UUID,Nonce> nonces,
int nonceValiditySeconds)
-
Method Details
-
start
public void start()
- Specified by:
start in interface Service
-
stop
public void stop()
- Specified by:
stop in interface Stoppable
-
run
public void run()
- Specified by:
run in interface Runnable