NetKernel APIs


org.ten60.netkernel.layer1.meta
Class ActiveAccessorMeta

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

public class ActiveAccessorMeta
extends DependencyMeta
implements IURAccessorMeta

An implementation of IURAccessorMeta for active accessors, i.e. accessors that only implement the URRequest.RQT_SOURCE request.


Field Summary
 
Fields inherited from class org.ten60.netkernel.layer1.meta.DependencyMeta
sDebugFlag, sEmpty
 
Fields inherited from interface com.ten60.netkernel.urii.accessor.IURAccessorMeta
MIME_TYPE
 
Constructor Summary
ActiveAccessorMeta(int aCost, boolean aIsThreadSafe)
          Creates a new instance of ActiveAccessorMeta
 
Method Summary
 int getContextSensitivity()
          Return the depth of sensitivity on the calling context (super stack).
 boolean isIntermediate()
          accessors are never intermediate
 boolean isThreadSafe()
          returns true if the accessor is thread safe
 void setThreadSafe(boolean aIsThreadSafe)
          sets the accessor to be threadsafe or not
 boolean supportsRequestType(int aRequestType)
          returns true if the request type is RRequest.RQT_SOURCE
 
Methods inherited from class org.ten60.netkernel.layer1.meta.DependencyMeta
canIndependentlyExpire, getCostDependenciesRecursive, getCreationCost, getDirectDependencies, getExpiryDependenciesRecursive, getLocalCreationCost, getMimeType, getPessimisticExpiryTime, getUsageCost, isExpired, setDebugString, setDependencies, setIntermediate, setMimeType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ten60.netkernel.urii.IURMeta
getCreationCost, getMimeType, getPessimisticExpiryTime, getUsageCost, isExpired
 

Constructor Detail

ActiveAccessorMeta

public ActiveAccessorMeta(int aCost,
                          boolean aIsThreadSafe)
Creates a new instance of ActiveAccessorMeta

Method Detail

supportsRequestType

public boolean supportsRequestType(int aRequestType)
returns true if the request type is RRequest.RQT_SOURCE

Specified by:
supportsRequestType in interface IURAccessorMeta
See Also:
URRequest

isThreadSafe

public boolean isThreadSafe()
returns true if the accessor is thread safe

Specified by:
isThreadSafe in interface IURAccessorMeta

setThreadSafe

public void setThreadSafe(boolean aIsThreadSafe)
sets the accessor to be threadsafe or not


isIntermediate

public boolean isIntermediate()
accessors are never intermediate

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

getContextSensitivity

public int getContextSensitivity()
Description copied from interface: IURMeta
Return the depth of sensitivity on the calling context (super stack). 0 means no sensitivity

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

NetKernel APIs


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