Class GuardedMethodInvokerImpl
- java.lang.Object
-
- org.hawaiiframework.util.semaphore.GuardedMethodInvokerImpl
-
- All Implemented Interfaces:
GuardedMethodInvoker
public class GuardedMethodInvokerImpl extends Object implements GuardedMethodInvoker
Default implementation ofGuardedMethodInvoker.
-
-
Constructor Summary
Constructors Constructor Description GuardedMethodInvokerImpl()The constructor.GuardedMethodInvokerImpl(Semaphore semaphore)Constructor an instance with a given semaphore.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinvokeIfNotActive(GuardedMethod invocation)Invoke the invocation if it's not active.
-
-
-
Constructor Detail
-
GuardedMethodInvokerImpl
public GuardedMethodInvokerImpl()
The constructor.
-
GuardedMethodInvokerImpl
public GuardedMethodInvokerImpl(Semaphore semaphore)
Constructor an instance with a given semaphore.
-
-
Method Detail
-
invokeIfNotActive
public void invokeIfNotActive(GuardedMethod invocation)
Description copied from interface:GuardedMethodInvokerInvoke the invocation if it's not active.- Specified by:
invokeIfNotActivein interfaceGuardedMethodInvoker- Parameters:
invocation- The method to invoke.
-
-