|
IcedTea-Web NetX |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jnlp.cache.UpdatePolicy
public class UpdatePolicy
A policy that determines when a resource should be checked for an updated version.
| Field Summary | |
|---|---|
static UpdatePolicy |
ALWAYS
|
static UpdatePolicy |
FORCE
|
static UpdatePolicy |
NEVER
|
static UpdatePolicy |
SESSION
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
boolean |
shouldUpdate(CacheEntry entry)
Returns whether the resource should be checked for being up-to-date. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static UpdatePolicy ALWAYS
public static UpdatePolicy SESSION
public static UpdatePolicy FORCE
public static UpdatePolicy NEVER
| Constructor Detail |
|---|
public UpdatePolicy()
public UpdatePolicy(long timeDiff)
timeDiff - how long in ms until update needed| Method Detail |
|---|
public boolean shouldUpdate(CacheEntry entry)
|
IcedTea-Web NetX |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||