Package ca.uhn.test.concurrency
Class PointcutLatch
java.lang.Object
ca.uhn.test.concurrency.PointcutLatch
- All Implemented Interfaces:
ca.uhn.fhir.interceptor.api.IAnonymousInterceptor,IPointcutLatch
public class PointcutLatch
extends Object
implements ca.uhn.fhir.interceptor.api.IAnonymousInterceptor, IPointcutLatch
-
Constructor Summary
ConstructorsConstructorDescriptionPointcutLatch(ca.uhn.fhir.interceptor.api.IPointcut thePointcut) PointcutLatch(String theName) -
Method Summary
Modifier and TypeMethodDescriptionList<ca.uhn.fhir.interceptor.api.HookParams>List<ca.uhn.fhir.interceptor.api.HookParams>awaitExpectedWithTimeout(int timeoutSecond) voidvoidclear()longstatic ObjectgetLatchInvocationParameter(List<ca.uhn.fhir.interceptor.api.HookParams> theHookParams) static ObjectgetLatchInvocationParameter(List<ca.uhn.fhir.interceptor.api.HookParams> theHookParams, int index) <T> TgetLatchInvocationParameterOfType(Class<T> theType) voidinvoke(ca.uhn.fhir.interceptor.api.IPointcut thePointcut, ca.uhn.fhir.interceptor.api.HookParams theArgs) booleanisSet()voidrunWithExpectedCount(int theExpectedCount, Runnable r) setDefaultTimeoutSeconds(int theDefaultTimeoutSeconds) voidsetExpectAtLeast(int theCount) voidsetExpectedCount(int theCount) voidsetExpectedCount(int theCount, boolean theExactMatch) toString()
-
Constructor Details
-
PointcutLatch
-
PointcutLatch
-
-
Method Details
-
runWithExpectedCount
- Throws:
InterruptedException
-
getLastInvoke
-
setDefaultTimeoutSeconds
-
setExpectedCount
- Specified by:
setExpectedCountin interfaceIPointcutLatch
-
setExpectedCount
-
setExpectAtLeast
-
isSet
-
awaitExpected
- Specified by:
awaitExpectedin interfaceIPointcutLatch- Throws:
InterruptedException
-
awaitExpectedWithTimeout
public List<ca.uhn.fhir.interceptor.api.HookParams> awaitExpectedWithTimeout(int timeoutSecond) throws InterruptedException - Throws:
InterruptedException
-
clear
- Specified by:
clearin interfaceIPointcutLatch
-
invoke
public void invoke(ca.uhn.fhir.interceptor.api.IPointcut thePointcut, ca.uhn.fhir.interceptor.api.HookParams theArgs) - Specified by:
invokein interfaceca.uhn.fhir.interceptor.api.IAnonymousInterceptor
-
call
-
toString
-
getLatchInvocationParameter
-
getLatchInvocationParameterOfType
-
getLatchInvocationParameter
public static Object getLatchInvocationParameter(List<ca.uhn.fhir.interceptor.api.HookParams> theHookParams) -
getLatchInvocationParameter
public static Object getLatchInvocationParameter(List<ca.uhn.fhir.interceptor.api.HookParams> theHookParams, int index)
-