NetKernel APIs


com.ten60.netkernel.urii
Interface IURMeta

All Known Subinterfaces:
IHasDependencies, IURAccessorMeta
All Known Implementing Classes:
AccessorMeta, ActiveAccessorMeta, DataAccessorMeta, DependencyMeta, MetaImpl

public interface IURMeta

Metadata about an IURRepresentation


Method Summary
 int getContextSensitivity()
          Return the depth of sensitivity on the calling context (super stack).
 int getCreationCost()
          Return an abitrary integer cost quantifier for regenerating this representation- see typical accessors for costs they assign.
 String getMimeType()
          Return the MIME (Multipurpose Internet Mail Extensions) type of the resource this representation represents
 long getPessimisticExpiryTime()
          Return a positive integer number of millseconds from the 1970 datum at which point the representation will need to be checked to see if it is expired- if it is before that time it can be assumed the representation _is_ valid without need to call isExpired()
 int getUsageCost()
          Return an abitrary integer cost quantifier for using this representation- this value is only significant for streaming resources
 boolean isExpired()
          Return true if the resource is considered expired and an IURAccessor should source a new representation
 boolean isIntermediate()
          Return true if the representation is considered to be of transient use within part of a larger operation, inputs to calculations and final results would not be intermediate.
 

Method Detail

getMimeType

public String getMimeType()
Return the MIME (Multipurpose Internet Mail Extensions) type of the resource this representation represents


getPessimisticExpiryTime

public long getPessimisticExpiryTime()
Return a positive integer number of millseconds from the 1970 datum at which point the representation will need to be checked to see if it is expired- if it is before that time it can be assumed the representation _is_ valid without need to call isExpired()


isExpired

public boolean isExpired()
Return true if the resource is considered expired and an IURAccessor should source a new representation


getCreationCost

public int getCreationCost()
Return an abitrary integer cost quantifier for regenerating this representation- see typical accessors for costs they assign. This value helps caches decide the worth of data. The value accumulates in highly derived resources


getUsageCost

public int getUsageCost()
Return an abitrary integer cost quantifier for using this representation- this value is only significant for streaming resources


isIntermediate

public boolean isIntermediate()
Return true if the representation is considered to be of transient use within part of a larger operation, inputs to calculations and final results would not be intermediate.


getContextSensitivity

public int getContextSensitivity()
Return the depth of sensitivity on the calling context (super stack). 0 means no sensitivity


NetKernel APIs


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