org.jboss.ws.api.monitoring
Class RecordGroupAssociation
- java.lang.Object
- org.jboss.ws.api.monitoring.RecordGroupAssociation
public class RecordGroupAssociation extends Object
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 Constructor and Description RecordGroupAssociation()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static String
peekGroupID()
Returns the groupID currently associated to the current threadstatic String
popGroupID()
Returns the groupID for the current thread and removes the association.static void
pushGroupID(String groupID)
Associates the specified groupID to the current thread
Method Detail
pushGroupID
public static void pushGroupID(String groupID)
Associates the specified groupID to the current thread- Parameters:
groupID
- the groupID to associate to the current thread
peekGroupID
public static String peekGroupID()
Returns the groupID currently associated to the current thread- Returns:
- the current thread groupID
popGroupID
public static String popGroupID()
Returns the groupID for the current thread and removes the association.- Returns:
- thre current thread groupID
Copyright © 2018 JBoss, by Red Hat. All rights reserved.