Class AbstractLRUApplicableInterceptor
java.lang.Object
jadex.providedservice.impl.service.interceptors.AbstractApplicableInterceptor
jadex.providedservice.impl.service.interceptors.ComponentThreadInterceptor
jadex.providedservice.impl.service.interceptors.AbstractLRUApplicableInterceptor
- All Implemented Interfaces:
IServiceInvocationInterceptor
- Direct Known Subclasses:
AuthenticationInterceptor
Abstract interceptor class that uses a LRU for caching applicable states of invocations
for subsequent calls. Should be used whenever isApplicable method is expensive.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe LRU.Fields inherited from class jadex.providedservice.impl.service.interceptors.ComponentThreadInterceptor
ia
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractLRUApplicableInterceptor
(jadex.core.impl.Component ia) Create a new AbstractLRUApplicableInterceptor. -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Replacement method for isApplicable.final boolean
isApplicable
(ServiceInvocationContext context) Test if the interceptor is applicable.Methods inherited from class jadex.providedservice.impl.service.interceptors.ComponentThreadInterceptor
getComponent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jadex.providedservice.impl.service.IServiceInvocationInterceptor
execute
-
Field Details
-
applicables
The LRU.
-
-
Constructor Details
-
AbstractLRUApplicableInterceptor
public AbstractLRUApplicableInterceptor(jadex.core.impl.Component ia) Create a new AbstractLRUApplicableInterceptor.
-
-
Method Details
-
isApplicable
Test if the interceptor is applicable.- Specified by:
isApplicable
in interfaceIServiceInvocationInterceptor
- Overrides:
isApplicable
in classComponentThreadInterceptor
- Returns:
- True, if applicable.
-
customIsApplicable
Replacement method for isApplicable.
-