org.mule.util.concurrent
Class ThreadNameHelper
java.lang.Object
org.mule.util.concurrent.ThreadNameHelper
public class ThreadNameHelper
- extends Object
Encapsulates thread naming logic for Mule standalone and embedded scenarios.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
receiver
public static String receiver(MuleContext muleContext,
String connectorName)
dispatcher
public static String dispatcher(MuleContext muleContext,
String connectorName)
requester
public static String requester(MuleContext muleContext,
String connectorName)
asyncProcessor
public static String asyncProcessor(MuleContext muleContext,
String mpName)
sedaService
public static String sedaService(MuleContext muleContext,
String name)
flow
public static String flow(MuleContext muleContext,
String name)
getPrefix
public static String getPrefix(MuleContext muleContext)
- Generate a generic thread name prefix for this context.
- Parameters:
muleContext
- context to generate the name prefix for
- Returns:
- "[appName]." if Mule is running as a container, otherwise "Mule."
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.