クラス org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed

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

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

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

説明

A CacheEntry that is to be recognized as Relaxed entry.

作者:
Nicolas Modrzyk

Emmanuel Cecchet

バージョン:
1.0

ResultCacheEntryRelaxed.java39 行で定義されています。

Public メソッド

 ResultCacheEntryRelaxed (SelectRequest request, ControllerResultSet result, long timeout, boolean keepIfNotDirty)
void invalidate ()
String getType ()
long getDeadline ()
void setDeadline (long deadline)
long getTimeout ()
String[] toStringTable ()
boolean getKeepIfNotDirty ()

Private 変数

long timeout
long deadline
boolean keepIfNotDirty


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

org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.ResultCacheEntryRelaxed SelectRequest  request,
ControllerResultSet  result,
long  timeout,
boolean  keepIfNotDirty
 

Create a new Relaxed Query Cache entry

引数:
request Select request to cache
result ResultSet to cache
timeout timeout in ms for this entry
keepIfNotDirty true if entry must be kept in cache if not dirty once timeout has expired
ResultCacheEntryRelaxed.java54 行で定義されています。
00056 { 00057 super(request, result); 00058 this.timeout = timeout; 00059 this.deadline = System.currentTimeMillis() + timeout; 00060 this.keepIfNotDirty = keepIfNotDirty; 00061 }


メソッド

long org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.getDeadline  ) 
 

Get the expiration deadline

戻り値:
the expiration deadline
ResultCacheEntryRelaxed.java84 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.deadline.

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCache.addToCache(), org.objectweb.cjdbc.controller.cache.result.ResultCache.RelaxedCacheThread.run(), と org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.toStringTable().

00085 { 00086 return deadline; 00087 }

boolean org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.getKeepIfNotDirty  ) 
 

Should the entry must be kept in the cache if the entry is not dirty once the timeout has expired.

戻り値:
true if yes
ResultCacheEntryRelaxed.java124 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.keepIfNotDirty.

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCache.RelaxedCacheThread.run().

00125 { 00126 return keepIfNotDirty; 00127 }

long org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.getTimeout  ) 
 

Get the timeout for this entry.

戻り値:
timeout in ms
ResultCacheEntryRelaxed.java104 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.timeout.

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCache.RelaxedCacheThread.run().

00105 { 00106 return timeout; 00107 }

String org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.getType  )  [virtual]
 

参照:
org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getType()

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

ResultCacheEntryRelaxed.java74 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.toStringTable().

00075 { 00076 return "Relaxed"; 00077 }

void org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.invalidate  )  [virtual]
 

参照:
org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.invalidate()

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

ResultCacheEntryRelaxed.java66 行で定義されています。

00067 { 00068 state = CACHE_DIRTY; 00069 }

void org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.setDeadline long  deadline  ) 
 

Set the expiration deadline

引数:
deadline time in ms relative to current time
ResultCacheEntryRelaxed.java94 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCache.RelaxedCacheThread.run().

00095 { 00096 this.deadline = deadline; 00097 }

String [] org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.toStringTable  )  [virtual]
 

参照:
org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.toStringTable()

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

ResultCacheEntryRelaxed.java112 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.getDeadline(), org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getSizeOfResult(), org.objectweb.cjdbc.common.sql.AbstractRequest.getSQL(), org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getState(), と org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.getType().

00113 { 00114 return new String[]{request.getSQL(), getType(), getState(), 00115 new Date(getDeadline()).toString(), "" + getSizeOfResult()}; 00116 }


変数

long org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.deadline [private]
 

ResultCacheEntryRelaxed.java42 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.getDeadline().

boolean org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.keepIfNotDirty [private]
 

ResultCacheEntryRelaxed.java43 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.getKeepIfNotDirty().

long org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.timeout [private]
 

ResultCacheEntryRelaxed.java41 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.getTimeout().


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