|
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
public class MetaImpl
Implementation of IURMeta for representations created by the NetKernel
| Constructor Summary | |
|---|---|
MetaImpl(java.lang.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 |
java.lang.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(java.lang.String aMimeType)
update our mime type |
protected void |
setPessimisticExpiryTime(long aExpiryTime)
update our pessimistic expiry time |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaImpl(java.lang.String aMimeType,
long aExpiryTime,
int aCreationCost)
aMimeType - our mime typeaExpiryTime - our pessimistic expiry timeaCreationCost - our cost of creation| Method Detail |
|---|
public java.lang.String getMimeType()
getMimeType in interface IURMetapublic void setMimeType(java.lang.String aMimeType)
protected void setPessimisticExpiryTime(long aExpiryTime)
public long getPessimisticExpiryTime()
getPessimisticExpiryTime in interface IURMetapublic boolean isExpired()
isExpired in interface IURMetapublic int getCreationCost()
getCreationCost in interface IURMetapublic int getUsageCost()
getUsageCost in interface IURMetapublic boolean isIntermediate()
isIntermediate in interface IURMetaprotected final void incrementCreationCost(int aCost)
public int getContextSensitivity()
getContextSensitivity in interface IURMeta
|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||