Package org.jboss.ws.api.monitoring
Class RecordGroupAssociation
java.lang.Object
org.jboss.ws.api.monitoring.RecordGroupAssociation
Associates the record group ID with the current thread. This is implemented internally
through a static ThreadLocal member.
- Since:
- 8-Dec-2007
- Author:
- Alessio Soldano
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the groupID currently associated to the current threadstatic StringReturns the groupID for the current thread and removes the association.static voidpushGroupID(String groupID) Associates the specified groupID to the current thread
-
Constructor Details
-
RecordGroupAssociation
public RecordGroupAssociation()
-
-
Method Details
-
pushGroupID
Associates the specified groupID to the current thread- Parameters:
groupID- the groupID to associate to the current thread
-
peekGroupID
Returns the groupID currently associated to the current thread- Returns:
- the current thread groupID
-
popGroupID
Returns the groupID for the current thread and removes the association.- Returns:
- thre current thread groupID
-