|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.excalibur.source.impl.validity.AbstractAggregatedValidity org.apache.cocoon.components.source.impl.MultiSourceValidity
public class MultiSourceValidity
An aggregated SourceValidity
for multiple sources.
Field Summary | |
---|---|
static int |
CHECK_ALWAYS
The delay value indicating to check always. |
Fields inherited from interface org.apache.excalibur.source.SourceValidity |
---|
INVALID, UNKNOWN, VALID |
Constructor Summary | |
---|---|
MultiSourceValidity(SourceResolver resolver,
long delay)
Create a new MultiSourceValidity instance. |
Method Summary | |
---|---|
void |
addSource(Source src)
Add a Source to the list of Source s monitored by this
instance. |
void |
close()
Close this instance, or in other words declare that no other sources will be added to this MultiSourceValidity and that checkings can be now
performed. |
int |
isValid()
Check the validity of this SourceValidity instance. |
int |
isValid(SourceValidity newValidity)
Check the validity of this instance comparing it with a (recently acquired) new SourceValidity object. |
Methods inherited from class org.apache.excalibur.source.impl.validity.AbstractAggregatedValidity |
---|
add, getValidities, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CHECK_ALWAYS
The delay value indicating to check always.
Constructor Detail |
---|
public MultiSourceValidity(SourceResolver resolver, long delay)
Create a new MultiSourceValidity
instance.
If the number of milliseconds is less than zero, or it's sum with
the number of now milliseconds is greater than the biggest long
representable, the expiration date will be set to Long.MAX_VALUE
milliseconds from the epoch.
resolver
- the SourceResolver
used to access the sources.delay
- the number of milliseconds from now defining for how long
this instance will be valid.Method Detail |
---|
public void addSource(Source src)
public void close()
Close this instance, or in other words declare that no other sources will
be added to this MultiSourceValidity
and that checkings can be now
performed.
public int isValid()
Check the validity of this SourceValidity
instance.
SourceValidity.isValid()
public int isValid(SourceValidity newValidity)
Check the validity of this instance comparing it with a (recently acquired)
new SourceValidity
object.
SourceValidity.isValid(SourceValidity)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |