Novell exteNd Messaging Platform 5.2

com.sssw.jbroker.api.transaction
Interface ThreadContext


public interface ThreadContext

The ThreadContext manages a stack of Transaction contexts at the Thread level. A context can be an arbitrary java.lang.Object.


Method Summary
 Object getContext()
          Get the top transation context for the current thread.
 Object getContext(Thread thread)
          Get the top transation context for the given thread.
 Object popContext()
          Pop the top transaction context for the current thread.
 void pushContext(Object context)
          Push a transaction context for the current thread.
 

Method Detail

pushContext

public void pushContext(Object context)
Push a transaction context for the current thread.


popContext

public Object popContext()
                  throws EmptyStackException
Pop the top transaction context for the current thread.

Throws:
EmptyStackException

getContext

public Object getContext()
Get the top transation context for the current thread. If there is no context, null is returned.


getContext

public Object getContext(Thread thread)
Get the top transation context for the given thread. If there is no context, null is returned.


Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.