public class CallContextCache
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
CallContextCache.CallContextRef |
private static class |
CallContextCache.Signature |
private static class |
CallContextCache.SingletonHolder
Holder class to do lazy allocation of the ClosureManager instance
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<CallContextCache.Signature,CallContextCache.CallContextRef> |
contextCache |
private java.lang.ref.ReferenceQueue<CallContext> |
contextReferenceQueue |
Modifier | Constructor and Description |
---|---|
private |
CallContextCache()
Constructs a ClosureManager
|
Modifier and Type | Method and Description |
---|---|
CallContext |
getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention) |
CallContext |
getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno) |
CallContext |
getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno,
boolean faultProtect) |
static CallContextCache |
getInstance()
Gets the global instance of the CallContextCache
|
private final java.util.Map<CallContextCache.Signature,CallContextCache.CallContextRef> contextCache
private final java.lang.ref.ReferenceQueue<CallContext> contextReferenceQueue
public static CallContextCache getInstance()
public final CallContext getCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention)
public final CallContext getCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno)
public final CallContext getCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect)