org.jboss.ws.api.monitoring
Class RecordGroupAssociation

java.lang.Object
  extended by 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
RecordGroupAssociation()
           
 
Method Summary
static String peekGroupID()
          Returns the groupID currently associated to the current thread
static 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordGroupAssociation

public RecordGroupAssociation()
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 © 2012 JBoss, by Red Hat. All Rights Reserved.