NetKernel APIs


org.ten60.netkernel.layer1.meta
Class TimedExpiryDependencyMeta

java.lang.Object
  extended byorg.ten60.netkernel.layer1.meta.DependencyMeta
      extended byorg.ten60.netkernel.layer1.meta.TimedExpiryDependencyMeta
All Implemented Interfaces:
IHasDependencies, IURMeta

public class TimedExpiryDependencyMeta
extends DependencyMeta

A Dependency Meta (for cost) but with a specific expiry time - i.e. it ignores expiry of it's dependents


Field Summary
 
Fields inherited from class org.ten60.netkernel.layer1.meta.DependencyMeta
sDebugFlag, sEmpty
 
Constructor Summary
TimedExpiryDependencyMeta(String aMimeType, long aExpiryTime, int aCreationCost)
          Creates a new instance of TimedExpiryMeta
 
Method Summary
 boolean canIndependentlyExpire()
          return true if this meta can expire independently of its dependencies
 IURMeta[] getExpiryDependenciesRecursive()
          get recursive list of expiry dependencies
 long getPessimisticExpiryTime()
          recursively calculate the pessimistic expiry time
 boolean isExpired()
          recursive evaluation of isExpired by looking at dependencies
 String toString()
           
 
Methods inherited from class org.ten60.netkernel.layer1.meta.DependencyMeta
getContextSensitivity, getCostDependenciesRecursive, getCreationCost, getDirectDependencies, getLocalCreationCost, getMimeType, getUsageCost, isIntermediate, setDebugString, setDependencies, setIntermediate, setMimeType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimedExpiryDependencyMeta

public TimedExpiryDependencyMeta(String aMimeType,
                                 long aExpiryTime,
                                 int aCreationCost)
Creates a new instance of TimedExpiryMeta

Method Detail

getPessimisticExpiryTime

public long getPessimisticExpiryTime()
Description copied from class: DependencyMeta
recursively calculate the pessimistic expiry time

Specified by:
getPessimisticExpiryTime in interface IURMeta
Overrides:
getPessimisticExpiryTime in class DependencyMeta

isExpired

public boolean isExpired()
Description copied from class: DependencyMeta
recursive evaluation of isExpired by looking at dependencies

Specified by:
isExpired in interface IURMeta
Overrides:
isExpired in class DependencyMeta

canIndependentlyExpire

public boolean canIndependentlyExpire()
Description copied from interface: IHasDependencies
return true if this meta can expire independently of its dependencies

Specified by:
canIndependentlyExpire in interface IHasDependencies
Overrides:
canIndependentlyExpire in class DependencyMeta

toString

public String toString()
Overrides:
toString in class DependencyMeta

getExpiryDependenciesRecursive

public IURMeta[] getExpiryDependenciesRecursive()
Description copied from interface: IHasDependencies
get recursive list of expiry dependencies

Specified by:
getExpiryDependenciesRecursive in interface IHasDependencies
Overrides:
getExpiryDependenciesRecursive in class DependencyMeta

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.