public static enum SessionConcurrentAccessHandler.ConcurrentAccessPolicy extends java.lang.Enum<SessionConcurrentAccessHandler.ConcurrentAccessPolicy>
| Enum Constant and Description |
|---|
CONCURRENT
スレッド毎のスナップショットを作成することで、
並行アクセスに対する一貫読み取りおよび
楽観ロック方式による書き込みを行う。
リクエストスレッドがセッション上の変数にアクセスした時点で、
セッションのスナップショット(ディープコピー)をスレッドローカル変数上に作成する。
以降、当該リクエストスレッドからのアクセスはこのスナップショットに対して行われる。
スナップショットにはバージョン番号が付与され、新たなスナップショットを生成する度にインクリメントされる。
リクエスト終了時にスナップショット上の変更をもとのセッションにマージするが、
この際、セッション上のバージョン番号とスナップショット上のバージョン番号が一致していない場合は
ワーニングメッセージを画面に表示する。
|
| Modifier and Type | Method and Description |
|---|---|
static SessionConcurrentAccessHandler.ConcurrentAccessPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SessionConcurrentAccessHandler.ConcurrentAccessPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionConcurrentAccessHandler.ConcurrentAccessPolicy CONCURRENT
public static SessionConcurrentAccessHandler.ConcurrentAccessPolicy[] values()
for (SessionConcurrentAccessHandler.ConcurrentAccessPolicy c : SessionConcurrentAccessHandler.ConcurrentAccessPolicy.values()) System.out.println(c);
public static SessionConcurrentAccessHandler.ConcurrentAccessPolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null