ThreadContext API
便宜上、またより良いパフォーマンスが得られるように、ORBではトランザクションコンテキスト情報を保存するためのスレッドレベルのデータ構造にアクセスできます。
package com.sssw.jbroker.api.transaction;
import java.util.EmptyStackException;
/**
* The ThreadContext manages a stack of Transaction contexts
* at the Thread level. A context can be any arbitrary
* java.lang.Object.
*/
public interface ThreadContext
{
/**
* Push a transaction context for the current thread.
*/
void pushContext(java.lang.Object context);
/**
* Pop the top transaction context for the current thread.
*/
java.lang.Object popContext() throws EmptyStackException;
/**
* Get the top transation context for the current thread. If
* there is no context, null is returned.
*/
java.lang.Object getContext();
/**
* Get the top transation context for the given thread. If there is
* no context, null is returned.
*/
java.lang.Object getContext(Thread thread);
}
Copyright © 1998-2003, Novell, Inc. All rights reserved.