Class ThreadLocalGammaTxnPool
- java.lang.Object
-
- org.multiverse.stms.gamma.transactions.ThreadLocalGammaTxnPool
-
public final class ThreadLocalGammaTxnPool extends java.lang.Object
A ThreadLocal that stores theGammaTxnPool
.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.ThreadLocal<GammaTxnPool>
threadlocal
-
Constructor Summary
Constructors Modifier Constructor Description private
ThreadLocalGammaTxnPool()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GammaTxnPool
getThreadLocalGammaTxnPool()
Returns the GammaTxnalPool stored in the ThreadLocalGammaTxnPool.
-
-
-
Field Detail
-
threadlocal
private static final java.lang.ThreadLocal<GammaTxnPool> threadlocal
-
-
Method Detail
-
getThreadLocalGammaTxnPool
public static GammaTxnPool getThreadLocalGammaTxnPool()
Returns the GammaTxnalPool stored in the ThreadLocalGammaTxnPool. If no instance exists, a new instance is created.- Returns:
- the GammaTxnPool.
-
-