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)
async
public static String async(MuleContext muleContext,
String name,
int sequenceNumber)
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 empty string
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.