Interface GuardedMethodInvoker
- All Known Implementing Classes:
GuardedMethodInvokerImpl
public interface GuardedMethodInvoker
Guard that only one
Invocable
is active at one point in time.-
Method Summary
Modifier and TypeMethodDescriptionboolean
invokeIfNotActive
(Invocable method) Invoke the invocation if it's not active.
-
Method Details
-
invokeIfNotActive
Invoke the invocation if it's not active.- Parameters:
method
- The method to invoke.- Returns:
true
if the invocation was attempted,false
if another invocation was active.
-