クラス org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching

org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCachingに対する継承グラフ

Inheritance graph
[凡例]
org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCachingのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

説明

RelaxedCaching means we set a timeout value for this entry, and when expired we keep in the cache if no write has modified the corresponding result, we wait for the same amount of time again. RelaxedCaching may provide stale data. The timeout defines the maximum staleness of a cache entry. It means that the cache may return an entry that is out of date. timeout: is a value in seconds and 0 means no timeout (always in the cache) keepIfNotDirty: if true the entry is kept in the cache and the timeout is reset, if false, the entry is removed from the cache after the timeout has expired even if the entry was not affected by a write.

作者:
Nicolas Modrzyk

Emmanuel Cecchet

バージョン:
1.0

RelaxedCaching.java50 行で定義されています。

Public メソッド

 RelaxedCaching (boolean keepIfNotDirty, long timeout)
CacheEntry getCacheEntry (SelectRequest sqlQuery, ControllerResultSet result, AbstractResultCache cache)
String getXml ()

Private 変数

long timeout
boolean keepIfNotDirty


コンストラクタとデストラクタ

org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.RelaxedCaching boolean  keepIfNotDirty,
long  timeout
 

Create new RelaxedCaching action

引数:
timeout before we check the validity of an entry
keepIfNotDirty true if non-dirty entries must be kept in the cache
RelaxedCaching.java61 行で定義されています。
00062 { 00063 this.keepIfNotDirty = keepIfNotDirty; 00064 this.timeout = timeout; 00065 }


メソッド

CacheEntry org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.getCacheEntry SelectRequest  sqlQuery,
ControllerResultSet  result,
AbstractResultCache  cache
[virtual]
 

参照:
org.objectweb.cjdbc.controller.cache.result.CacheBehavior.getCacheEntry(SelectRequest, ControllerResultSet, AbstractResultCache)

org.objectweb.cjdbc.controller.cache.result.CacheBehaviorを実装しています.

RelaxedCaching.java71 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.keepIfNotDirty, と org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.timeout.

00073 { 00074 return new ResultCacheEntryRelaxed(sqlQuery, result, timeout, 00075 keepIfNotDirty); 00076 }

String org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.getXml  )  [virtual]
 

参照:
org.objectweb.cjdbc.common.xml.XmlComponent.getXml()

org.objectweb.cjdbc.controller.cache.result.CacheBehaviorを実装しています.

RelaxedCaching.java81 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.keepIfNotDirty, と org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.timeout.

00082 { 00083 return "<" + DatabasesXmlTags.ELT_RelaxedCaching + " " 00084 + DatabasesXmlTags.ATT_timeout + "=\"" + timeout / 1000 + "\" " 00085 + DatabasesXmlTags.ATT_keepIfNotDirty + "=\"" + keepIfNotDirty + "\"/>"; 00086 }


変数

boolean org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.keepIfNotDirty [private]
 

RelaxedCaching.java53 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.getCacheEntry(), と org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.getXml().

long org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.timeout [private]
 

RelaxedCaching.java52 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.getCacheEntry(), と org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.getXml().


このクラスの説明は次のファイルから生成されました:
CJDBCversion1.0.4に対してTue Oct 12 15:16:39 2004に生成されました。 doxygen 1.3.8