package com.perforce.maven.scm.provider.p4.manager;
import com.perforce.p4java.client.IClient;
public class P4ClientThreadLocal
{
public static final ThreadLocal<IClient> userThreadLocal = new ThreadLocal<IClient>();
public static void set( IClient client )
{
userThreadLocal.set( client );
}
public static void unset()
{
userThreadLocal.remove();
}
public static IClient get()
{
return userThreadLocal.get();
}
}
# |
Change |
User |
Description |
Committed |
|
#1
|
9701 |
dantran |
speed up reactor build caching last IClient of current thread |
|
|