|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ten60.netkernel.urii.meta.MetaImpl
Implementation of IURMeta for representations created by the NetKernel
Constructor Summary | |
MetaImpl(String aMimeType,
long aExpiryTime,
int aCreationCost)
Creates a new instance of ComponentMeta |
Method Summary | |
int |
getContextSensitivity()
Return the depth of sensitivity on the calling context (super stack). |
int |
getCreationCost()
Return creation cost |
String |
getMimeType()
Return our mime type |
long |
getPessimisticExpiryTime()
Return our pessimistic expiry time |
int |
getUsageCost()
Return usage cost |
protected void |
incrementCreationCost(int aCost)
increment the creation cost |
boolean |
isExpired()
default behaviour is always to be expired after expiry time |
boolean |
isIntermediate()
Never intermediate by default |
void |
setMimeType(String aMimeType)
update our mime type |
protected void |
setPessimisticExpiryTime(long aExpiryTime)
update our pessimistic expiry time |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MetaImpl(String aMimeType, long aExpiryTime, int aCreationCost)
aMimeType
- our mime typeaExpiryTime
- our pessimistic expiry timeaCreationCost
- our cost of creationMethod Detail |
public String getMimeType()
getMimeType
in interface IURMeta
public void setMimeType(String aMimeType)
protected void setPessimisticExpiryTime(long aExpiryTime)
public long getPessimisticExpiryTime()
getPessimisticExpiryTime
in interface IURMeta
public boolean isExpired()
isExpired
in interface IURMeta
public int getCreationCost()
getCreationCost
in interface IURMeta
public int getUsageCost()
getUsageCost
in interface IURMeta
public boolean isIntermediate()
isIntermediate
in interface IURMeta
protected final void incrementCreationCost(int aCost)
public int getContextSensitivity()
getContextSensitivity
in interface IURMeta
public String toString()
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |