Class UpdatePolicy
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.resources.UpdatePolicy
-
public class UpdatePolicy extends java.lang.ObjectA policy that determines when a resource should be checked for an updated version.- Version:
- $Revision: 1.3 $
-
-
Field Summary
Fields Modifier and Type Field Description static UpdatePolicyALWAYSstatic UpdatePolicyFORCEstatic UpdatePolicyNEVERprivate longtimeDiff
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldUpdate(ResourceInfo entry)
-
-
-
Field Detail
-
ALWAYS
public static UpdatePolicy ALWAYS
-
FORCE
public static UpdatePolicy FORCE
-
NEVER
public static UpdatePolicy NEVER
-
timeDiff
private final long timeDiff
-
-
Method Detail
-
shouldUpdate
public boolean shouldUpdate(ResourceInfo entry)
- Parameters:
entry- entry which should be cared- Returns:
- whether the resource should be checked for being up-to-date.
-
-