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 void
invokeIfNotActive(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:GuardedMethodInvoker
Invoke the invocation if it's not active.- Specified by:
invokeIfNotActive
in interfaceGuardedMethodInvoker
- Parameters:
invocation
- The method to invoke.
-
-