public interface ClockProvider
Clockused as the reference for
nowwhen validating the
The default implementation will return the current system time. Plugging in custom implementations may be useful for instance in batch applications which need to run with a specific logical date, e.g. with yesterday's date when re-running a failed batch job execution.
Implementations must be safe for access from several threads at the same time.
now; must not be
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.