Class UpdatePolicy
java.lang.Object
net.adoptopenjdk.icedteaweb.resources.UpdatePolicy
A policy that determines when a resource should be checked for
an updated version.
- Version:
- $Revision: 1.3 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic UpdatePolicystatic UpdatePolicystatic UpdatePolicyprivate final long -
Constructor Summary
ConstructorsConstructorDescriptionUpdatePolicy(long timeDiff) Create an update policy that only checks a file for being updated if it has not been checked for longer than the specified time. -
Method Summary
-
Field Details
-
ALWAYS
-
FORCE
-
NEVER
-
timeDiff
private final long timeDiff
-
-
Constructor Details
-
UpdatePolicy
public UpdatePolicy(long timeDiff) Create an update policy that only checks a file for being updated if it has not been checked for longer than the specified time.- Parameters:
timeDiff- how long in ms until update needed
-
-
Method Details
-
shouldUpdate
- Parameters:
entry- entry which should be cared- Returns:
- whether the resource should be checked for being up-to-date.
-