Skip to content
Snippets Groups Projects
Commit 3dd5d880 authored by brinn's avatar brinn
Browse files

change: add name of calling thread to name of monitored thread

SVN: 7018
parent 18ffe16c
No related branches found
No related tags found
No related merge requests found
......@@ -154,6 +154,7 @@ public class MonitoringProxy<T>
public Object invoke(final Object myProxy, final Method method, final Object[] args)
throws Throwable
{
final String callingThreadName = Thread.currentThread().getName();
final Future<Object> future = executor.submit(new NamedCallable<Object>()
{
public Object call() throws Exception
......@@ -177,10 +178,10 @@ public class MonitoringProxy<T>
{
if (nameOrNull != null)
{
return nameOrNull;
return callingThreadName + "::" + nameOrNull;
} else
{
return describe(method);
return callingThreadName + "::" + describe(method);
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment