netx.jnlp.cache
Class UpdatePolicy
java.lang.Object
netx.jnlp.cache.UpdatePolicy
public class UpdatePolicy
extends java.lang.Object
A policy that determines when a resource should be checked for
an updated version.
UpdatePolicy() - Create a new update policy; this policy always updates the
entry unless the shouldUpdate method is overridden.
|
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.
|
UpdatePolicy
public UpdatePolicy()
Create a new update policy; this policy always updates the
entry unless the shouldUpdate method is overridden.
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.
timeDiff
- how long in ms until update needed
shouldUpdate
public boolean shouldUpdate(CacheEntry entry)
Returns whether the resource should be checked for being
up-to-date.