public class PropertyExpiryTimes extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
minTimeSeconds |
protected Map<com.hp.hpl.jena.graph.Node,Long> |
secondsForNode |
Modifier and Type | Method and Description |
---|---|
static PropertyExpiryTimes |
assemble(com.hp.hpl.jena.rdf.model.Model model)
assemble builds a PropertyExpiryTimes from a given model by looking
at all the statements (S EXTRAS.cacheExpiryTime O) where S is
a property, that is, has rdf:type rdf:Property, owl:DatatypeProperty,
or owl:ObjectProperty.
|
static PropertyExpiryTimes |
buildForTests(Object... args)
buildForTests constructs a PropertyExpiryTimes from an array of
alternating Node and (seconds) Long values; the node in element
N of the array is given the seconds value in element N+1.
|
boolean |
equals(Object other) |
static long |
getSecondsValue(com.hp.hpl.jena.rdf.model.Resource x,
com.hp.hpl.jena.rdf.model.Property p,
long ifAbsent) |
long |
minTimeMillis() |
protected void |
put(com.hp.hpl.jena.graph.Node n,
long seconds) |
long |
timeInMillisFor(com.hp.hpl.jena.rdf.model.Resource r) |
String |
toString() |
public static PropertyExpiryTimes buildForTests(Object... args)
public static PropertyExpiryTimes assemble(com.hp.hpl.jena.rdf.model.Model model)
protected void put(com.hp.hpl.jena.graph.Node n, long seconds)
public static long getSecondsValue(com.hp.hpl.jena.rdf.model.Resource x, com.hp.hpl.jena.rdf.model.Property p, long ifAbsent)
public long timeInMillisFor(com.hp.hpl.jena.rdf.model.Resource r)
public long minTimeMillis()
Copyright © 2014. All Rights Reserved.